Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
2549:9bf6b767a56a | 2550:dc42faf90e1d |
---|---|
366 this.$store.commit("application/showProfiles", false); | 366 this.$store.commit("application/showProfiles", false); |
367 }, | 367 }, |
368 loadProfile(survey) { | 368 loadProfile(survey) { |
369 if (survey) { | 369 if (survey) { |
370 this.$store.commit("fairwayprofile/profileLoading", true); | 370 this.$store.commit("fairwayprofile/profileLoading", true); |
371 this.$store.commit("application/splitscreenLoading", true); | |
371 this.$store | 372 this.$store |
372 .dispatch("fairwayprofile/loadProfile", survey) | 373 .dispatch("fairwayprofile/loadProfile", survey) |
373 .finally(() => | 374 .finally(() => { |
374 this.$store.commit("fairwayprofile/profileLoading", false) | 375 this.$store.commit("fairwayprofile/profileLoading", false); |
375 ); | 376 this.$store.commit("application/splitscreenLoading", false); |
377 }); | |
376 } | 378 } |
377 }, | 379 }, |
378 toggleCutTool() { | 380 toggleCutTool() { |
379 this.cutTool.setActive(!this.cutTool.getActive()); | 381 this.cutTool.setActive(!this.cutTool.getActive()); |
380 this.lineTool.setActive(false); | 382 this.lineTool.setActive(false); |