diff client/src/store/imports.js @ 1734:549337e6facd

importschedule: POC edit functionality
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 09 Jan 2019 15:41:29 +0100
parents 8dd7452929ca
children ecd4ceccfd02
line wrap: on
line diff
--- a/client/src/store/imports.js	Wed Jan 09 15:19:04 2019 +0100
+++ b/client/src/store/imports.js	Wed Jan 09 15:41:29 2019 +0100
@@ -56,7 +56,7 @@
     eMailNotification: false,
     scheduled: false,
     easyCron: true,
-    cronstring: null,
+    cronString: null,
     cronMode: "",
     minutes: null,
     month: null,
@@ -129,7 +129,9 @@
       Vue.set(state.currentSchedule, "import_", KINDIMPORTTYPE[kind]);
       Vue.set(state.currentSchedule, "id", id);
       if (cron) {
-        Vue.set(state.currentSchedule, "cronstring", cron);
+        Vue.set(state.currentSchedule, "scheduled", true);
+        Vue.set(state.currentSchedule, "easyCron", false);
+        Vue.set(state.currentSchedule, "cronString", cron);
       }
       if (eMailNotification) {
         Vue.set(state.currentSchedule, "eMailNotification", eMailNotification);