changeset 2550:dc42faf90e1d

client: profiles: trigger splitscreen loading animation when changing compare survey
author Markus Kottlaender <markus@intevation.de>
date Fri, 08 Mar 2019 09:10:17 +0100
parents 9bf6b767a56a
children 298087ae22b3
files client/src/components/fairway/Profiles.vue
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/Profiles.vue	Fri Mar 08 08:50:47 2019 +0100
+++ b/client/src/components/fairway/Profiles.vue	Fri Mar 08 09:10:17 2019 +0100
@@ -368,11 +368,13 @@
     loadProfile(survey) {
       if (survey) {
         this.$store.commit("fairwayprofile/profileLoading", true);
+        this.$store.commit("application/splitscreenLoading", true);
         this.$store
           .dispatch("fairwayprofile/loadProfile", survey)
-          .finally(() =>
-            this.$store.commit("fairwayprofile/profileLoading", false)
-          );
+          .finally(() => {
+            this.$store.commit("fairwayprofile/profileLoading", false);
+            this.$store.commit("application/splitscreenLoading", false);
+          });
       }
     },
     toggleCutTool() {