changeset 1713:d4702b0ff15f

use IMPORTTYPES from store
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 08 Jan 2019 16:07:25 +0100
parents 1368e2a52c29
children 1b25e7a3a92e dd9d90cae683
files client/src/components/importschedule/Importscheduledetail.vue
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importschedule/Importscheduledetail.vue	Tue Jan 08 15:53:22 2019 +0100
+++ b/client/src/components/importschedule/Importscheduledetail.vue	Tue Jan 08 16:07:25 2019 +0100
@@ -329,9 +329,7 @@
       triggerActive: true
     };
   },
-  IMPORTTYPES: {
-    BOTTLENECK: "BOTTLENECK"
-  },
+  IMPORTTYPES: IMPORTTYPES,
   IMPORTSOURCES: {
     SOAP: "SOAP"
   },
@@ -452,9 +450,8 @@
         data["insecure"] = this.insecure;
       }
       this.triggerActive = false;
-      const type = IMPORTTYPES[this.import_];
       this.$store
-        .dispatch("imports/triggerImport", { type, data })
+        .dispatch("imports/triggerImport", { type: this.import_, data })
         .then(response => {
           const { id } = response.data;
           displayInfo({