Mercurial > gemma
comparison client/src/components/gauge/Gauges.vue @ 2754:d0f6c222f4f9
client:correct a set of strings marking
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 21 Mar 2019 13:24:49 +0100 |
parents | 5da81634bdc4 |
children | 71e7237110ba |
comparison
equal
deleted
inserted
replaced
2753:2aa1620ffd9e | 2754:d0f6c222f4f9 |
---|---|
6 ]" | 6 ]" |
7 > | 7 > |
8 <div style="width: 18rem"> | 8 <div style="width: 18rem"> |
9 <UIBoxHeader | 9 <UIBoxHeader |
10 icon="ruler-vertical" | 10 icon="ruler-vertical" |
11 title="Gauges" | 11 :title="gaugesLabel" |
12 :closeCallback="close" | 12 :closeCallback="close" |
13 /> | 13 /> |
14 <div class="box-body"> | 14 <div class="box-body"> |
15 <transition name="fade"> | 15 <transition name="fade"> |
16 <div class="loading" v-if="loading"> | 16 <div class="loading" v-if="loading"> |
102 }, | 102 }, |
103 computed: { | 103 computed: { |
104 ...mapState("application", ["showGauges", "activeSplitscreenId"]), | 104 ...mapState("application", ["showGauges", "activeSplitscreenId"]), |
105 ...mapState("gauges", ["gauges"]), | 105 ...mapState("gauges", ["gauges"]), |
106 ...mapGetters("gauges", ["selectedGauge"]), | 106 ...mapGetters("gauges", ["selectedGauge"]), |
107 gaugesLabel() { | |
108 return this.$gettext("Gauges"); | |
109 }, | |
107 orderedGauges() { | 110 orderedGauges() { |
108 let orderedGauges = {}; | 111 let orderedGauges = {}; |
109 this.gauges.forEach(g => { | 112 this.gauges.forEach(g => { |
110 let isrsInfo = this.isrsInfo(g); | 113 let isrsInfo = this.isrsInfo(g); |
111 if (orderedGauges.hasOwnProperty(isrsInfo.countryCode)) { | 114 if (orderedGauges.hasOwnProperty(isrsInfo.countryCode)) { |