Commit ef3d81b 1 parent ea6bfc6 commit ef3d81b Copy full SHA for ef3d81b
File tree 1 file changed +12
-19
lines changed
src/test/resources/bundles/defaultProcess_V1/template
1 file changed +12
-19
lines changed Original file line number Diff line number Diff line change 1
- <!-- Copyright (c) 2023-2024 , RTE (http://www.rte-france.com) -->
1
+ <!-- Copyright (c) 2023-2025 , RTE (http://www.rte-france.com) -->
2
2
<!-- See AUTHORS.txt -->
3
3
<!-- This Source Code Form is subject to the terms of the Mozilla Public -->
4
4
<!-- License, v. 2.0. If a copy of the MPL was not distributed with this -->
8
8
9
9
<h4 > Hello {{ userContext.login }} , you received the following message </h4 >
10
10
11
- <br />
11
+ <br />
12
12
13
- <div class =" template-style" >
14
- <span id =" richMessage" >{{ card.data.richMessage }} </span >
13
+ <div class =' template-style' >
14
+ <span id =' richMessage' >{{ card.data.richMessage }} </span >
15
15
</div >
16
16
17
-
18
- <br />
19
- <br />
20
- <br />
17
+ <br />
18
+ <br />
19
+ <br />
21
20
22
21
<div >
23
- <button id =" editButton" class =" opfab-btn" onClick =" editCard()" >Edit</button >
22
+ <button id =' editButton' class =' opfab-btn' onClick =' editCard()' >Edit</button >
24
23
</div >
25
24
26
-
27
25
<script >
28
26
opfab .richTextEditor .showRichMessage (document .getElementById (" richMessage" ));
29
-
30
- if (! opfab .currentCard .isUserAllowedToEdit ()) {
31
- console .log (new Date ().toISOString ()," Hide edit button" );
27
+
28
+ if (! opfab .currentCard .isUserAllowedToEdit () || opfab .currentCard .getDisplayContext () == ' archive' ) {
32
29
document .getElementById (" editButton" ).setAttribute (' hidden' , true );
33
30
}
34
- else console .log (new Date ().toISOString ()," Do not hide edit button" );
35
-
36
- function editCard () {
37
- opfab .currentCard .editCard ();
38
- }
31
+ function editCard () { opfab .currentCard .editCard (); }
39
32
40
- </script >
33
+ </script >
You can’t perform that action at this time.
0 commit comments