changeset 1072:23b1d8c0e782

client: fix morphtool icon change * Simplify icon states in Linetool.vue while adding the missing inverted property for the area-chart icon.
author Bernhard Reiter <bernhard@intevation.de>
date Fri, 26 Oct 2018 10:55:18 +0200
parents f8f398e36e38
children 7845c599f4c9
files client/src/linetool/Linetool.vue
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/linetool/Linetool.vue	Fri Oct 26 10:31:52 2018 +0200
+++ b/client/src/linetool/Linetool.vue	Fri Oct 26 10:55:18 2018 +0200
@@ -59,11 +59,10 @@
     icon() {
       return {
         fa: true,
-        "fa-pencil": !this.selectedMorph,
-        "fa-pencil inverted":
-          !this.selectedMorph && this.drawMode === "LineString",
         "fa-area-chart": this.selectedMorph,
-        "fa-edit inverted": this.drawMode === "Polygon"
+        "fa-edit": !this.selectedMorph && this.drawMode === "Polygon",
+        "fa-pencil": !this.selectedMorph && this.drawMode !== "Polygon",
+        inverted: this.drawMode
       };
     }
   }