diff client/src/components/importoverview/ImportOverview.vue @ 2796:718ec88fbeed

import_overview: disable loading spinner in case of errors
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 25 Mar 2019 13:44:55 +0100
parents c1e832f77726
children e19fac818aab
line wrap: on
line diff
--- a/client/src/components/importoverview/ImportOverview.vue	Mon Mar 25 12:48:00 2019 +0100
+++ b/client/src/components/importoverview/ImportOverview.vue	Mon Mar 25 13:44:55 2019 +0100
@@ -259,6 +259,8 @@
                 this.loading = false;
               })
               .catch(error => {
+                this.loading = false;
+                this.$store.commit("imports/setCurrentDetails", {});
                 const { status, data } = error.response;
                 displayError({
                   title: this.$gettext("Backend Error"),
@@ -271,6 +273,7 @@
         })
         .catch(error => {
           const { status, data } = error.response;
+          this.loading = false;
           displayError({
             title: this.$gettext("Backend Error"),
             message: `${status}: ${data.message || data}`