diff options
author | Anton Tananaev <anton@traccar.org> | 2023-01-31 07:38:18 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-01-31 07:38:18 -0800 |
commit | dcb1fa21441cb292fd66253a97b083e5d47604e5 (patch) | |
tree | 6ed2170b9737b4cb44293d2b9b3e92395db8ba23 /modern/src/store | |
parent | ea34943121cab989e5ced540139c4fd39527cbde (diff) | |
download | trackermap-web-dcb1fa21441cb292fd66253a97b083e5d47604e5.tar.gz trackermap-web-dcb1fa21441cb292fd66253a97b083e5d47604e5.tar.bz2 trackermap-web-dcb1fa21441cb292fd66253a97b083e5d47604e5.zip |
Add report scheduling
Diffstat (limited to 'modern/src/store')
-rw-r--r-- | modern/src/store/reports.js | 4 |
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; + }, }, }); |