Mercurial > gemma
annotate client/src/components/toolbar/Profiles.vue @ 5281:cda87159b431
[security] Fixed vulnerability in golang.org/x/text/encoding/unicode
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 19 Jun 2020 16:19:57 +0200 |
parents | 5fb3134c3a0c |
children |
rev | line source |
---|---|
1372
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
1 <template> |
1480 | 2 <div |
3 @click="$store.commit('application/showProfiles', !showProfiles)" | |
4 class="toolbar-button" | |
2941
c0162cbb5775
client: toolbar: improved tooltip positions
Markus Kottlaender <markus@intevation.de>
parents:
2919
diff
changeset
|
5 v-tooltip.right="label" |
1480 | 6 > |
7 <font-awesome-icon | |
8 icon="chart-area" | |
9 :class="{ 'text-info': showProfiles }" | |
2919
6c5364ff0abb
client: removed a lot of unnecessary closing tags
Markus Kottlaender <markus@intevation.de>
parents:
2900
diff
changeset
|
10 /> |
4666
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
11 <span |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
12 v-if="twoMapsVisible" |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
13 :class="[ |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
14 'indicator', |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
15 { |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
16 show: true |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
17 } |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
18 ]" |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
19 > |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
20 2 |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
21 </span> |
1480 | 22 </div> |
1372
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
23 </template> |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
24 |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
25 <script> |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
26 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
27 * without warranty, see README.md and license for details. |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
28 * |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
29 * SPDX-License-Identifier: AGPL-3.0-or-later |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
30 * License-Filename: LICENSES/AGPL-3.0.txt |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
31 * |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
32 * Copyright (C) 2018 by via donau |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
33 * – Österreichische Wasserstraßen-Gesellschaft mbH |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
34 * Software engineering by Intevation GmbH |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
35 * |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
36 * Author(s): |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
37 * Markus Kottländer <markus.kottlaender@intevation.de> |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
38 */ |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
39 import { mapState } from "vuex"; |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
40 |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
41 export default { |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
42 name: "profiles", |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
43 computed: { |
2900
2097c3633f0a
client: added tooltips to toolbar buttons
Markus Kottlaender <markus@intevation.de>
parents:
1558
diff
changeset
|
44 ...mapState("application", ["showProfiles"]), |
4666
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
45 ...mapState("map", ["openLayersMaps"]), |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
46 twoMapsVisible() { |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
47 return this.openLayersMaps.length === 2 && !this.showProfiles; |
5fb3134c3a0c
profiles: indicator for multiple surveys when menu is closed
Thomas Junk <thomas.junk@intevation.de>
parents:
3425
diff
changeset
|
48 }, |
2900
2097c3633f0a
client: added tooltips to toolbar buttons
Markus Kottlaender <markus@intevation.de>
parents:
1558
diff
changeset
|
49 label() { |
3425
cb2f67a07400
client: toolbar/dialogs: unified toolbar tooltips and dialog titles
Markus Kottlaender <markus@intevation.de>
parents:
2946
diff
changeset
|
50 return this.$gettext("Bottleneck Surveys"); |
2900
2097c3633f0a
client: added tooltips to toolbar buttons
Markus Kottlaender <markus@intevation.de>
parents:
1558
diff
changeset
|
51 } |
1372
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
52 } |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
53 }; |
553aadd97087
new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
54 </script> |