File tree 1 file changed +22
-0
lines changed 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 5
5
v-model =" formValid"
6
6
v-if =" templates && item != null"
7
7
>
8
+ <v-alert
9
+ v-model =" showInfo"
10
+ color =" info"
11
+ text
12
+ dismissible
13
+ >
14
+ Use environment variable <code >SEMAPHORE_SCHEDULE_TIMEZONE</code > or config param
15
+ <code >schedule.timezone</code > to set timezone for Schedule.
16
+ </v-alert >
8
17
9
18
<v-alert
10
19
:value =" formError"
@@ -330,10 +339,23 @@ export default {
330
339
months: [],
331
340
weekdays: [],
332
341
rawCron: false ,
342
+ showInfo: true ,
333
343
};
334
344
},
335
345
346
+ watch: {
347
+ showInfo (val ) {
348
+ if (val) {
349
+ localStorage .removeItem (' schedule_hide_info' );
350
+ } else {
351
+ localStorage .setItem (' schedule_hide_info' , ' 1' );
352
+ }
353
+ },
354
+ },
355
+
336
356
async created () {
357
+ this .showInfo = localStorage .getItem (' schedule_hide_info' ) !== ' 1' ;
358
+
337
359
this .templates = (await axios ({
338
360
method: ' get' ,
339
361
url: ` /api/project/${ this .projectId } /templates` ,
You can’t perform that action at this time.
0 commit comments