# HG changeset patch # User Thomas Junk # Date 1546960045 -3600 # Node ID d4702b0ff15f4726c713d65ab944d4a7a79c2085 # Parent 1368e2a52c2921d853494047eeb2d742c9a47773 use IMPORTTYPES from store diff -r 1368e2a52c29 -r d4702b0ff15f client/src/components/importschedule/Importscheduledetail.vue --- 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({