You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description:'Select the days of the week and the hour during which the automatic upgrade will occur if available. The upgrade will start within the selected hour.'
148
-
},
149
-
{
150
-
label:'Restart Node-RED at scheduled time',
151
-
value:1,
152
-
disabled:!this.scheduledUpgrade.enabled,
153
-
description:'Select the days of the week and the hour during which the Node-RED instance will be restarted. The restart will occur within the selected hour.'
154
-
}
155
-
]
156
148
}
157
149
},
158
150
watch: {
@@ -233,7 +225,7 @@ export default {
233
225
this.scheduledUpgrade.initialValue= {
234
226
days:response.map(entry=>entry.day),
235
227
hour: response[0].hour, // use the first entry hour, they should all be the same
236
-
restartOnly: response[0].restartOnly?1:0// use the first entry restartOnly, they should all be the same
228
+
restart: response[0].restart// use the first entry restart, they should all be the same
237
229
}
238
230
this.scheduledUpgrade.initialValue.enabled=true
239
231
@@ -244,14 +236,14 @@ export default {
244
236
seconds:0
245
237
}
246
238
this.scheduledUpgrade.enabled=true
247
-
this.scheduledUpgrade.restartOnly= response[0].restartOnly?1:0// use the first entry restartOnly, they should all be the same
239
+
this.scheduledUpgrade.restart= response[0].restart// use the first entry restart, they should all be the same
248
240
}).catch(error=> {
249
241
if (error.response.status===404) {
250
242
// Apply any defaults from the team type
251
243
if (this.team.type.properties.autoStackUpdate?.days?.length>0&&this.team.type.properties.autoStackUpdate?.hours?.length>0) {
0 commit comments