changeset 2907:ab0a829735f6

client: import stretches: removed unnecessary wrapper method
author Markus Kottlaender <markus@intevation.de>
date Tue, 02 Apr 2019 16:55:55 +0200
parents ae678f7cf938
children 2821113846a9
files client/src/components/ImportStretches.vue
diffstat 1 files changed, 1 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/ImportStretches.vue	Tue Apr 02 16:55:10 2019 +0200
+++ b/client/src/components/ImportStretches.vue	Tue Apr 02 16:55:55 2019 +0200
@@ -485,18 +485,6 @@
         }
       });
     },
-    loadStretches() {
-      return new Promise((resolve, reject) => {
-        this.$store
-          .dispatch("imports/loadStretches")
-          .then(response => {
-            resolve(response);
-          })
-          .catch(error => {
-            reject(error);
-          });
-      });
-    },
     clean() {
       this.id = "";
       this.edit = false;
@@ -594,7 +582,7 @@
             message: this.$gettext("Starting import of stretch")
           });
           this.clean();
-          this.loadStretches().then(() => {
+          this.$store.dispatch("imports/loadStretches").then(() => {
             this.edit = false;
           });
         })