diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-06 16:30:51 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-06 16:30:51 +0200 |
| commit | 434e53dea597f61ad59e14012f528ceac58ead85 (patch) | |
| tree | f4dc6bae69f4c46dad9cfce1f74684cccfc26388 /frontend/views/page/page.actions.js | |
| parent | a42008b2d8c051ec2110d866c2da288a66a1d989 (diff) | |
tile list. drag items to sort them
Diffstat (limited to 'frontend/views/page/page.actions.js')
| -rw-r--r-- | frontend/views/page/page.actions.js | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/frontend/views/page/page.actions.js b/frontend/views/page/page.actions.js index bd38683..dd94936 100644 --- a/frontend/views/page/page.actions.js +++ b/frontend/views/page/page.actions.js @@ -26,6 +26,18 @@ export const toggleEditTileForm = () => dispatch => { dispatch({ type: types.page.toggle_edit_tile_form }) } +export const showTileList = () => dispatch => { + dispatch({ type: types.page.show_tile_list }) +} + +export const hideTileList = () => dispatch => { + dispatch({ type: types.page.hide_tile_list }) +} + +export const toggleTileList = () => dispatch => { + dispatch({ type: types.page.toggle_tile_list }) +} + export const updatePageTile = tile => dispatch => { dispatch({ type: types.page.update_page_tile, tile }) } @@ -52,4 +64,14 @@ export const showGraphIfUnloaded = ({ graph_name }) => dispatch => ( .then(resolve) .catch(reject) }) -)
\ No newline at end of file +) + +export const setTileSortOrder = tiles => dispatch => { + dispatch({ type: types.page.set_tile_sort_order, tiles }) + updateTileSortOrder(tiles)(dispatch) +} + +export const updateTileSortOrder = tiles => dispatch => { + +} + |
