changeset 5136:03f28c5d2a88

Import overview: Show busy-spinner during dispatch of review-request. To indicate activity the busy-spinner is fired up during the request for the reviews is running. After the request is done, independently from the result, the spinner is deactivated (finally).
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 30 Mar 2020 10:52:13 +0200
parents 53618d18e387
children 7bbb1e015b44
files client/src/components/importoverview/ImportOverview.vue
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importoverview/ImportOverview.vue	Fri Mar 27 15:42:11 2020 +0100
+++ b/client/src/components/importoverview/ImportOverview.vue	Mon Mar 30 10:52:13 2020 +0200
@@ -482,6 +482,8 @@
               id: r.id,
               state: r.status
             }));
+            console.log("dispatching confirm");
+            this.loading = true;
             this.$store
               .dispatch("imports/confirmReview", data)
               .then(response => {
@@ -522,6 +524,10 @@
                   title: this.$gettext("Backend Error"),
                   message: message
                 });
+              })
+              .finally(() => {
+                console.log("end dispatching confirm");
+                this.loading = false;
               });
           }
         },