Mercurial > gemma
diff client/src/components/systemconfiguration/DataAccuracy.vue @ 3867:d37f44c4d531
client: configuration: moved default values to separate file
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 09 Jul 2019 16:11:42 +0200 |
parents | a7abfb3d400d |
children | 851c0ccba59b |
line wrap: on
line diff
--- a/client/src/components/systemconfiguration/DataAccuracy.vue Tue Jul 09 15:42:31 2019 +0200 +++ b/client/src/components/systemconfiguration/DataAccuracy.vue Tue Jul 09 16:11:42 2019 +0200 @@ -326,6 +326,7 @@ */ import { mapState } from "vuex"; +import defaults from "./defaults"; export default { computed: { @@ -333,13 +334,15 @@ }, methods: { reset() { - this.config.bn_revtime_multiplier = "1.5"; - this.config.gm_min_values_14d = "1224"; - this.config.gm_latest_hours = "24"; - this.config.gm_forecast_offset_24h = "15"; - this.config.gm_forecast_offset_72h = "15"; - this.config.gm_forecast_vs_reality_nsc_24h = "-12.5"; - this.config.gm_forecast_vs_reality_nsc_72h = "-12.5"; + this.config.bn_revtime_multiplier = defaults.bn_revtime_multiplier; + this.config.gm_min_values_14d = defaults.gm_min_values_14d; + this.config.gm_latest_hours = defaults.gm_latest_hours; + this.config.gm_forecast_offset_24h = defaults.gm_forecast_offset_24h; + this.config.gm_forecast_offset_72h = defaults.gm_forecast_offset_72h; + this.config.gm_forecast_vs_reality_nsc_24h = + defaults.gm_forecast_vs_reality_nsc_24h; + this.config.gm_forecast_vs_reality_nsc_72h = + defaults.gm_forecast_vs_reality_nsc_72h; }, submit() { this.$store.dispatch("application/saveConfig", {