File tree 3 files changed +3
-20
lines changed
3 files changed +3
-20
lines changed Original file line number Diff line number Diff line change 143
143
axios . post ( '/api/config/layers/' + layer , value )
144
144
. then ( response => {
145
145
// Set cookie named 'message' with the value 'Data saved successfully'
146
- document . cookie = 'message=The layer "' + layer + '" saved successfully.; path=/;' ;
147
-
146
+ document . cookie = 'message=The layer "' + layer + '" saved successfully. Please restart all nodes using the layer "' + layer + '".; path=/;' ;
148
147
window . location . href = '/pages/config/list/' ;
149
148
} )
150
149
. catch ( error => {
Original file line number Diff line number Diff line change 12
12
< div class ="row ">
13
13
< div class ="col-md-3 "> </ div >
14
14
< div class ="col-md-3 pt-4 " style ="width: 70% ">
15
- < h2 style ="text-wrap : nowrap "> Configuration Editor</ h2 >
16
- < h4 style ="text-wrap : nowrap "> Click on a layer to edit its configuration</ h4 >
15
+ < h2 style ="white-space : nowrap "> Configuration Editor</ h2 >
16
+ < h4 style ="white-space : nowrap "> Click on a layer to edit its configuration</ h4 >
17
17
< config-list > </ config-list >
18
18
</ div >
19
19
< div class ="col-md-3 "> </ div >
Original file line number Diff line number Diff line change @@ -96,8 +96,6 @@ class CurioUX extends LitElement {
96
96
97
97
// how Bootstrap & DataTables expect dark mode declared.
98
98
document . documentElement . classList . add ( 'dark' ) ;
99
-
100
- this . messsage = this . getCookieMessage ( ) ;
101
99
102
100
var s = document . body . style ;
103
101
s . padding = 0 ;
@@ -210,20 +208,6 @@ class CurioUX extends LitElement {
210
208
` ;
211
209
}
212
210
213
- getCookieMessage ( ) {
214
- const name = 'message' ;
215
- const cookies = document . cookie . split ( ';' ) ;
216
- for ( let i = 0 ; i < cookies . length ; i ++ ) {
217
- const cookie = cookies [ i ] . trim ( ) ;
218
- if ( cookie . startsWith ( name + '=' ) ) {
219
- var val = cookie . substring ( name . length + 1 ) ;
220
- document . cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;' ;
221
- return val ;
222
- }
223
- }
224
- return null ;
225
- }
226
-
227
211
} ;
228
212
229
213
customElements . define ( 'curio-ux' , CurioUX ) ;
You can’t perform that action at this time.
0 commit comments