comparison client/src/components/layers/Layers.vue @ 2754:d0f6c222f4f9

client:correct a set of strings marking
author Fadi Abbud <fadi.abbud@intevation.de>
date Thu, 21 Mar 2019 13:24:49 +0100
parents bb5286acfee2
children a7e31594959d
comparison
equal deleted inserted replaced
2753:2aa1620ffd9e 2754:d0f6c222f4f9
4 'box ui-element rounded bg-white text-nowrap', 4 'box ui-element rounded bg-white text-nowrap',
5 { expanded: showLayers } 5 { expanded: showLayers }
6 ]" 6 ]"
7 > 7 >
8 <div style="width: 18rem"> 8 <div style="width: 18rem">
9 <UIBoxHeader icon="layer-group" title="Layers" :closeCallback="close" /> 9 <UIBoxHeader
10 icon="layer-group"
11 :title="layersLabel"
12 :closeCallback="close"
13 />
10 <div class="box-body small"> 14 <div class="box-body small">
11 <Layerselect 15 <Layerselect
12 v-for="(layer, index) in layersForLegend" 16 v-for="(layer, index) in layersForLegend"
13 :layerindex="index" 17 :layerindex="index"
14 :layername="layer.name" 18 :layername="layer.name"
42 components: { 46 components: {
43 Layerselect: () => import("./Layerselect") 47 Layerselect: () => import("./Layerselect")
44 }, 48 },
45 computed: { 49 computed: {
46 ...mapGetters("map", ["layersForLegend"]), 50 ...mapGetters("map", ["layersForLegend"]),
47 ...mapState("application", ["showLayers"]) 51 ...mapState("application", ["showLayers"]),
52 layersLabel() {
53 return this.$gettext("Layers");
54 }
48 }, 55 },
49 methods: { 56 methods: {
50 close() { 57 close() {
51 this.$store.commit("application/showLayers", false); 58 this.$store.commit("application/showLayers", false);
52 }, 59 },