From dcb1fa21441cb292fd66253a97b083e5d47604e5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 31 Jan 2023 07:38:18 -0800 Subject: Add report scheduling --- modern/src/store/reports.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modern/src/store') 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; + }, }, }); -- cgit v1.2.3