# HG changeset patch # User Markus Kottlaender # Date 1554216955 -7200 # Node ID ab0a829735f607b19803e67441d98cfd9fb5a05d # Parent ae678f7cf9388b71e01b49424fcda48514692cc8 client: import stretches: removed unnecessary wrapper method diff -r ae678f7cf938 -r ab0a829735f6 client/src/components/ImportStretches.vue --- 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; }); })