Mercurial > gemma
changeset 3083:18ab67c7241a
client: removed pane control from toolbar since there will be contextual controls.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Thu, 18 Apr 2019 14:12:27 +0200 |
parents | a1ae3b734a9f |
children | 5a1f243d9c7c |
files | client/src/components/toolbar/PaneControl.vue client/src/components/toolbar/Toolbar.vue |
diffstat | 2 files changed, 0 insertions(+), 45 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/toolbar/PaneControl.vue Thu Apr 18 14:04:57 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -<template> - <div - @click="rotate" - :class="['toolbar-button', { disabled: panes.length < 2 }]" - v-tooltip.right="label" - > - <font-awesome-icon icon="redo" /> - </div> -</template> - -<script> -/* This is Free Software under GNU Affero General Public License v >= 3.0 - * without warranty, see README.md and license for details. - * - * SPDX-License-Identifier: AGPL-3.0-or-later - * License-Filename: LICENSES/AGPL-3.0.txt - * - * Copyright (C) 2018 by via donau - * – Österreichische Wasserstraßen-Gesellschaft mbH - * Software engineering by Intevation GmbH - * - * Author(s): - * Markus Kottländer <markus.kottlaender@intevation.de> - */ -import { mapState } from "vuex"; - -export default { - computed: { - ...mapState("application", ["panes", "paneRotate"]), - label() { - return this.$gettext("Rotate Panes"); - } - }, - methods: { - rotate() { - this.$store.commit( - "application/paneRotate", - this.paneRotate === 4 ? 1 : this.paneRotate + 1 - ); - } - } -}; -</script>
--- a/client/src/components/toolbar/Toolbar.vue Thu Apr 18 14:04:57 2019 +0200 +++ b/client/src/components/toolbar/Toolbar.vue Thu Apr 18 14:12:27 2019 +0200 @@ -13,7 +13,6 @@ <Linetool /> <Polygontool /> <Pdftool /> - <PaneControl /> </div> <div @click="$store.commit('application/expandToolbar', !expandToolbar)" @@ -121,7 +120,6 @@ export default { name: "toolbar", components: { - PaneControl: () => import("./PaneControl"), Identify: () => import("./Identify"), Layers: () => import("./Layers"), Linetool: () => import("./Linetool"),