changeset 4122:d85d8de8c28c

refresh layers deletes nashsutcliffecache
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 01 Aug 2019 15:16:58 +0200
parents b785b6bef578
children acd87a3d246b
files client/src/components/layers/Layers.vue client/src/store/gauges.js
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/layers/Layers.vue	Wed Jul 31 18:33:49 2019 +0200
+++ b/client/src/components/layers/Layers.vue	Thu Aug 01 15:16:58 2019 +0200
@@ -86,6 +86,7 @@
       this.$store.commit("application/showLayers", false);
     },
     refreshLayers() {
+      this.$store.commit("gauges/deleteNashSutcliffeCache");
       this.$store.dispatch("map/refreshLayers");
     }
   }
--- a/client/src/store/gauges.js	Wed Jul 31 18:33:49 2019 +0200
+++ b/client/src/store/gauges.js	Thu Aug 01 15:16:58 2019 +0200
@@ -78,6 +78,9 @@
     nashSutcliffe: (state, data) => {
       state.nashSutcliffe = data;
     },
+    deleteNashSutcliffeCache: state => {
+      state.nashSutcliffeOverview = [];
+    },
     addNashSutcliffeOverviewEntry: (state, data) => {
       let existingIndex = state.nashSutcliffeOverview.findIndex(
         d => d.feature.get("id") === data.feature.get("id")