Mercurial > gemma
diff client/src/components/importschedule/Importscheduledetail.vue @ 1728:647195199dc8
importschedule: now with display of cron and delete function
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 09 Jan 2019 12:39:20 +0100 |
parents | 9e1abe157e47 |
children | 8dd7452929ca |
line wrap: on
line diff
--- a/client/src/components/importschedule/Importscheduledetail.vue Wed Jan 09 12:07:27 2019 +0100 +++ b/client/src/components/importschedule/Importscheduledetail.vue Wed Jan 09 12:39:20 2019 +0100 @@ -530,6 +530,11 @@ save() { let data = {}; if (!this.import_) return; + let cron = this.cronString; + if (this.easyCron) { + if (this.simple === "weekly") cron = "0 0 * * 0"; + if (this.simple === "monthly") cron = "0 0 1 * *"; + } switch (this.import_) { case this.$options.IMPORTTYPES.BOTTLENECK: if (!this.validateBottleneckfields()) return; @@ -539,6 +544,7 @@ data["attributes"] = { insecure: this.insecure + "" }; + if (cron) data["cron"] = cron; break; default: break;