Mercurial > gemma
diff client/src/components/fairway/Profiles.vue @ 2851:a7e31594959d
profiles: difference selection now with spinner
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 28 Mar 2019 17:04:44 +0100 |
parents | b6886706b325 |
children | 85dd3f98e18a |
line wrap: on
line diff
--- a/client/src/components/fairway/Profiles.vue Thu Mar 28 16:57:41 2019 +0100 +++ b/client/src/components/fairway/Profiles.vue Thu Mar 28 17:04:44 2019 +0100 @@ -12,7 +12,9 @@ :closeCallback="close" /> <div class="box-body"> - <SpinnerOverlay v-if="surveysLoading || profileLoading" /> + <SpinnerOverlay + v-if="surveysLoading || profileLoading || differencesLoading" + /> <select @change="moveToBottleneck" v-model="selectedBottleneck" @@ -275,6 +277,7 @@ "startPoint", "endPoint", "profileLoading", + "differencesLoading", "waterLevels" ]), orderedBottlenecks() { @@ -393,6 +396,7 @@ }, methods: { showSurveyDiffences() { + this.$store.commit("fairwayprofile/setDifferencesLoading", true); HTTP.post( "/diff", { @@ -428,6 +432,9 @@ title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); + }) + .finally(() => { + this.$store.commit("fairwayprofile/setDifferencesLoading", false); }); }, close() {