Mercurial > gemma
changeset 1396:a2ff987555e7
little style improvement in profiles box
and some linting
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 28 Nov 2018 15:07:54 +0100 |
parents | 210e9f16f8a0 |
children | dea40d4cba44 |
files | client/src/components/map/fairway/Profiles.vue |
diffstat | 1 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/map/fairway/Profiles.vue Wed Nov 28 14:28:21 2018 +0100 +++ b/client/src/components/map/fairway/Profiles.vue Wed Nov 28 15:07:54 2018 +0100 @@ -14,8 +14,7 @@ <div class="loading d-flex justify-content-center align-items-center" v-if="surveysLoading || profileLoading"> <font-awesome-icon icon="spinner" spin /> </div> - <small class="text-muted">Bottleneck:</small> - <select @click="moveToBottleneck" v-model="selectedBottleneck" class="form-control form-control-sm"> + <select @click="moveToBottleneck" v-model="selectedBottleneck" class="form-control font-weight-bold"> <option :value="null">Select Bottleneck</option> <option v-for="bn in bottlenecks" @@ -287,11 +286,9 @@ loadProfile(survey) { if (survey) { this.$store.commit("fairwayprofile/profileLoading", true); - this.$store - .dispatch("fairwayprofile/loadProfile", survey) - .finally(() => - this.$store.commit("fairwayprofile/profileLoading", false) - ); + this.$store.dispatch("fairwayprofile/loadProfile", survey).finally( + () => this.$store.commit("fairwayprofile/profileLoading", false) + ); } }, toggleCutTool() { @@ -370,7 +367,8 @@ }); }, deleteSelectedCut() { - let previousCuts = JSON.parse(localStorage.getItem("previousCuts")) || []; + let previousCuts = + JSON.parse(localStorage.getItem("previousCuts")) || []; previousCuts = previousCuts.filter(cut => { return JSON.stringify(cut) !== JSON.stringify(this.selectedCut); });