Mercurial > gemma
comparison client/src/components/toolbar/Profiles.vue @ 4666:5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 14 Oct 2019 16:35:54 +0200 |
parents | cb2f67a07400 |
children |
comparison
equal
deleted
inserted
replaced
4665:c47c8085cc7e | 4666:5fb3134c3a0c |
---|---|
6 > | 6 > |
7 <font-awesome-icon | 7 <font-awesome-icon |
8 icon="chart-area" | 8 icon="chart-area" |
9 :class="{ 'text-info': showProfiles }" | 9 :class="{ 'text-info': showProfiles }" |
10 /> | 10 /> |
11 <span | |
12 v-if="twoMapsVisible" | |
13 :class="[ | |
14 'indicator', | |
15 { | |
16 show: true | |
17 } | |
18 ]" | |
19 > | |
20 2 | |
21 </span> | |
11 </div> | 22 </div> |
12 </template> | 23 </template> |
13 | 24 |
14 <script> | 25 <script> |
15 /* This is Free Software under GNU Affero General Public License v >= 3.0 | 26 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
29 | 40 |
30 export default { | 41 export default { |
31 name: "profiles", | 42 name: "profiles", |
32 computed: { | 43 computed: { |
33 ...mapState("application", ["showProfiles"]), | 44 ...mapState("application", ["showProfiles"]), |
45 ...mapState("map", ["openLayersMaps"]), | |
46 twoMapsVisible() { | |
47 return this.openLayersMaps.length === 2 && !this.showProfiles; | |
48 }, | |
34 label() { | 49 label() { |
35 return this.$gettext("Bottleneck Surveys"); | 50 return this.$gettext("Bottleneck Surveys"); |
36 } | 51 } |
37 } | 52 } |
38 }; | 53 }; |