comparison client/src/components/toolbar/AvailableFairwayDepth.vue @ 3233:9a02b770c2e6

show_statistics: refac to fairwayavailability
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 10 May 2019 10:34:09 +0200
parents client/src/components/toolbar/Statistics.vue@2dab20bed284
children 91a3f6835f3d
comparison
equal deleted inserted replaced
3232:86231e847762 3233:9a02b770c2e6
1 <template>
2 <div class="toolbar-button" v-tooltip.right="label">
3 <font-awesome-icon
4 @click="$store.commit('application/showFairwayDepth', !showFairwayDepth)"
5 icon="chart-line"
6 :class="{ 'text-info': showFairwayDepth }"
7 />
8 </div>
9 </template>
10
11 <script>
12 /* This is Free Software under GNU Affero General Public License v >= 3.0
13 * without warranty, see README.md and license for details.
14 *
15 * SPDX-License-Identifier: AGPL-3.0-or-later
16 * License-Filename: LICENSES/AGPL-3.0.txt
17 *
18 * Copyright (C) 2018 by via donau
19 * – Österreichische Wasserstraßen-Gesellschaft mbH
20 * Software engineering by Intevation GmbH
21 *
22 * Author(s):
23 * Markus Kottländer <markus.kottlaender@intevation.de>
24 * Thomas Junk <thomas.junk@intevation.de>
25 */
26 import { mapState } from "vuex";
27
28 export default {
29 computed: {
30 ...mapState("application", ["showFairwayDepth"]),
31 label() {
32 return this.$gettext("Available fairway depth");
33 }
34 }
35 };
36 </script>