Mercurial > gemma
diff client/src/store/application.js @ 5036:8f421cd3c746 time-sliding
client: Implemented first version of time-sliding
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 27 Feb 2020 09:18:17 +0100 |
parents | 5555b77b8c4e |
children | 9d288d9b851b |
line wrap: on
line diff
--- a/client/src/store/application.js Fri Feb 21 10:08:32 2020 +0100 +++ b/client/src/store/application.js Thu Feb 27 09:18:17 2020 +0100 @@ -41,10 +41,12 @@ showGauges: false, showFairwayDepth: false, showFairwayDepthLNWL: false, + showTimeSlider: false, contextBoxContent: null, // bottlenecks, imports, staging expandToolbar: true, countries: ["AT", "SK", "HU", "HR", "RS", "BG", "RO"], searchQuery: "", + selectedTime: "2020-01-04", version, tempRoute: "", config: {} @@ -93,6 +95,12 @@ if (state.paneRotate === 5) state.paneRotate = 1; } }, + setselectedTime: (state, time) => { + state.selectedTime = time; + }, + showTimeSlider: (state, show) => { + state.showTimeSlider = show; + }, showSidebar: (state, show) => { state.showSidebar = show; },