diff client/src/components/identify/Identify.vue @ 4267:c5642480eb9b

styles: rename 'currency' to recency
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 27 Aug 2019 14:30:30 +0200
parents fbe2f1aa2757
children 837f90680d4c
line wrap: on
line diff
--- a/client/src/components/identify/Identify.vue	Tue Aug 27 14:22:45 2019 +0200
+++ b/client/src/components/identify/Identify.vue	Tue Aug 27 14:30:30 2019 +0200
@@ -46,10 +46,10 @@
             <font-awesome-icon
               icon="caret-up"
               fixed-width
-              :style="{ color: currencyColor(feature), 'font-size': 'x-large' }"
+              :style="{ color: recencyColor(feature), 'font-size': 'x-large' }"
             />
             <small class="my-auto">
-              {{ currency(feature) }}
+              {{ recency(feature) }}
             </small>
           </div>
           <small
@@ -161,7 +161,12 @@
 import classifications from "../../lib/classifications";
 import { styleFactory } from "@/components/map/styles";
 
-const { currencyColorCodes } = styleFactory();
+const {
+  recencyColorCodes
+  // gmAvailabilityColorCodes,
+  // forecastAccuracyColorCodes,
+  // forecastVsRealityColorCodes
+} = styleFactory();
 
 export default {
   name: "identify",
@@ -178,7 +183,7 @@
     }
   },
   methods: {
-    currency(feature) {
+    recency(feature) {
       const revisitingFactor = this.config.bn_revtime_multiplier;
       const messagesPerState = {
         OK: this.$gettext("Data within the revisiting time"),
@@ -190,8 +195,8 @@
       };
       return messagesPerState[classifications.surveyCurrency(feature)];
     },
-    currencyColor(feature) {
-      return currencyColorCodes[classifications.surveyCurrency(feature)];
+    recencyColor(feature) {
+      return recencyColorCodes[classifications.surveyCurrency(feature)];
     },
     showBottleneckMeta(feature) {
       const result = /bottleneck/.test(feature.getId().toLowerCase());