annotate client/src/components/toolbar/Profiles.vue @ 5267:aca4bf7af270

client: remove mapState from import statement
author Fadi Abbud <fadi.abbud@intevation.de>
date Wed, 10 Jun 2020 16:33:10 +0200
parents 5fb3134c3a0c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1372
553aadd97087 new cross profile workflow (WIP)
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
1 <template>
1480
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1436
diff changeset
2 <div
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1436
diff changeset
3 @click="$store.commit('application/showProfiles', !showProfiles)"
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1436
diff changeset
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
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1436
diff changeset
6 >
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1436
diff changeset
7 <font-awesome-icon
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1436
diff changeset
8 icon="chart-area"
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1436
diff changeset
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
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1436
diff changeset
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>