aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/store')
-rw-r--r--modern/src/store/reports.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/modern/src/store/reports.js b/modern/src/store/reports.js
index 0c336f7a..540c4d4e 100644
--- a/modern/src/store/reports.js
+++ b/modern/src/store/reports.js
@@ -10,6 +10,7 @@ const { reducer, actions } = createSlice({
period: 'today',
from: moment().subtract(1, 'hour').locale('en').format(moment.HTML5_FMT.DATETIME_LOCAL),
to: moment().locale('en').format(moment.HTML5_FMT.DATETIME_LOCAL),
+ button: 'json',
},
reducers: {
updateDeviceId(state, action) {
@@ -30,6 +31,9 @@ const { reducer, actions } = createSlice({
updateTo(state, action) {
state.to = action.payload;
},
+ updateButton(state, action) {
+ state.button = action.payload;
+ },
},
});