Mercurial > gemma
changeset 4124:acd87a3d246b
Merged
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Thu, 01 Aug 2019 15:53:22 +0200 |
parents | 209bdd361615 (current diff) d85d8de8c28c (diff) |
children | 0f69d256fa12 |
files | |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/layers/Layers.vue Thu Aug 01 14:22:24 2019 +0200 +++ b/client/src/components/layers/Layers.vue Thu Aug 01 15:53:22 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 Thu Aug 01 14:22:24 2019 +0200 +++ b/client/src/store/gauges.js Thu Aug 01 15:53:22 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")