comparison client/src/components/importconfiguration/ScheduledImports.vue @ 5389:661e8a2deed9 extented-report

add simple validation to statsupdate import
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 02 Jul 2021 14:16:02 +0200
parents 60bba8e6322b
children 064ac1014713
comparison
equal deleted inserted replaced
5388:60bba8e6322b 5389:661e8a2deed9
925 925
926 if (this.import_ === this.$options.IMPORTTYPES.REPORT) { 926 if (this.import_ === this.$options.IMPORTTYPES.REPORT) {
927 data["name"] = "data-quality-report"; 927 data["name"] = "data-quality-report";
928 } 928 }
929 if (this.import_ === this.$options.IMPORTTYPES.STATSUPDATE) { 929 if (this.import_ === this.$options.IMPORTTYPES.STATSUPDATE) {
930 if (!this.statsUpdate) return;
930 data["name"] = this.statsUpdate; 931 data["name"] = this.statsUpdate;
931 } 932 }
932 data["send-email"] = this.eMailNotification; 933 data["send-email"] = this.eMailNotification;
933 this.triggerActive = false; 934 this.triggerActive = false;
934 const type = 935 const type =
1022 if (this.trys) config["trys"] = Number(this.trys); 1023 if (this.trys) config["trys"] = Number(this.trys);
1023 if (this.import_ === this.$options.IMPORTTYPES.REPORT) { 1024 if (this.import_ === this.$options.IMPORTTYPES.REPORT) {
1024 config["name"] = "data-quality-report"; 1025 config["name"] = "data-quality-report";
1025 } 1026 }
1026 if (this.import_ === this.$options.IMPORTTYPES.STATSUPDATE) { 1027 if (this.import_ === this.$options.IMPORTTYPES.STATSUPDATE) {
1028 if (!this.statsUpdate) return;
1027 config["name"] = this.statsUpdate; 1029 config["name"] = this.statsUpdate;
1028 } 1030 }
1029 config["send-email"] = this.eMailNotification; 1031 config["send-email"] = this.eMailNotification;
1030 if (!this.id) { 1032 if (!this.id) {
1031 data["config"] = config; 1033 data["config"] = config;