summaryrefslogtreecommitdiff
path: root/frontend/views/page/page.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-06-06 16:30:51 +0200
committerJules Laplace <julescarbon@gmail.com>2020-06-06 16:30:51 +0200
commit434e53dea597f61ad59e14012f528ceac58ead85 (patch)
treef4dc6bae69f4c46dad9cfce1f74684cccfc26388 /frontend/views/page/page.actions.js
parenta42008b2d8c051ec2110d866c2da288a66a1d989 (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.js24
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 => {
+
+}
+