Mercurial > gemma
diff client/src/components/fairway/Profiles.vue @ 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 | 468c8dc796cf |
children | 85de42146bdb |
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() {