Mercurial > gemma
view client/src/application/Linetool.vue @ 776:bb3558142b18
client: add backendrequest to search
* Add request to backend for search. The output goes to the console.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Wed, 26 Sep 2018 12:43:44 +0200 |
parents | f09cbe80a864 |
children | 2990a878b16b |
line wrap: on
line source
<template> <div @click="drawLine" class="ui-element d-flex shadow drawtool"> <i :class="icon"></i> </div> </template> <style lang="scss"> .drawtool { position: absolute; bottom: 0; right: 0; background-color: white; padding: $small-offset; border-radius: $border-radius; margin-left: $offset; height: $icon-width; width: $icon-height; margin-bottom: $offset; margin-right: $offset; z-index: 2; } .fa-pencil-inverted { color: #0077ff; } </style> <script> import { mapGetters } from "vuex"; export default { name: "linetool", methods: { drawLine() { this.$store.commit("application/toggleDrawModeLine"); } }, computed: { ...mapGetters("application", ["drawMode"]), icon() { return { fa: true, "fa-pencil": true, "fa-pencil-inverted": this.drawMode }; } } }; </script>