gab-social/app/javascript/gabsocial/actions/columns.js

17 lines
316 B
JavaScript
Raw Normal View History

2019-07-02 08:10:25 +01:00
import { saveSettings } from './settings';
export const COLUMN_PARAMS_CHANGE = 'COLUMN_PARAMS_CHANGE';
export function changeColumnParams(uuid, path, value) {
return dispatch => {
dispatch({
type: COLUMN_PARAMS_CHANGE,
uuid,
path,
value,
});
dispatch(saveSettings());
};
}