diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-05-27 21:26:33 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-12-18 21:39:35 +0100 |
commit | 593f88acb159f53a1213562d1c29333439c7da65 (patch) | |
tree | a0352971ca4d5523e8f0c09c9dbe2f18b068b41d /app/javascript/flavours/glitch/actions | |
parent | c03cbb9471be1437f3cf1671b7592966db9c5c0b (diff) |
[Glitch] Change column params on pinned timeline
Port 06252ec71ed67cb84e6730fe7148552dc6481c7a to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/actions')
-rw-r--r-- | app/javascript/flavours/glitch/actions/columns.js | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/actions/columns.js b/app/javascript/flavours/glitch/actions/columns.js index bcb0cdf98..f550e6c48 100644 --- a/app/javascript/flavours/glitch/actions/columns.js +++ b/app/javascript/flavours/glitch/actions/columns.js @@ -1,8 +1,9 @@ import { saveSettings } from './settings'; -export const COLUMN_ADD = 'COLUMN_ADD'; -export const COLUMN_REMOVE = 'COLUMN_REMOVE'; -export const COLUMN_MOVE = 'COLUMN_MOVE'; +export const COLUMN_ADD = 'COLUMN_ADD'; +export const COLUMN_REMOVE = 'COLUMN_REMOVE'; +export const COLUMN_MOVE = 'COLUMN_MOVE'; +export const COLUMN_PARAMS_CHANGE = 'COLUMN_PARAMS_CHANGE'; export function addColumn(id, params) { return dispatch => { @@ -38,3 +39,15 @@ export function moveColumn(uuid, direction) { dispatch(saveSettings()); }; }; + +export function changeColumnParams(uuid, params) { + return dispatch => { + dispatch({ + type: COLUMN_PARAMS_CHANGE, + uuid, + params, + }); + + dispatch(saveSettings()); + }; +} |