Mercurial > gemma
diff client/src/store/diagram.js @ 3205:bf571429515f
client: fairway availability: moved component's type property to store to manipulate it from outside
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 08 May 2019 17:15:08 +0200 |
parents | cb67ee72485b |
children |
line wrap: on
line diff
--- a/client/src/store/diagram.js Wed May 08 17:10:17 2019 +0200 +++ b/client/src/store/diagram.js Wed May 08 17:15:08 2019 +0200 @@ -16,6 +16,7 @@ const init = () => { return { + type: "bottlenecks", selectedFairwayAvailabilityFeature: null, from: null, to: null, @@ -31,6 +32,9 @@ namespaced: true, state: init(), mutations: { + type: (state, type) => { + state.type = type; + }, setLOS: (state, LOS) => { state.LOS = LOS; },