mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 23:33:38 -07:00
Initial Commit Rework
This commit is contained in:
parent
74a4cc048c
commit
95051cbd63
2483 changed files with 101351 additions and 111396 deletions
27
frontend/src/Store/Actions/appActions.js
Normal file
27
frontend/src/Store/Actions/appActions.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
import { createAction } from 'redux-actions';
|
||||
import * as types from './actionTypes';
|
||||
|
||||
export const saveDimensions = createAction(types.SAVE_DIMENSIONS);
|
||||
export const setVersion = createAction(types.SET_VERSION);
|
||||
export const setIsSidebarVisible = createAction(types.SET_IS_SIDEBAR_VISIBLE);
|
||||
|
||||
export const setAppValue = createAction(types.SET_APP_VALUE, (payload) => {
|
||||
return {
|
||||
section: 'app',
|
||||
...payload
|
||||
};
|
||||
});
|
||||
|
||||
export const showMessage = createAction(types.SHOW_MESSAGE, (payload) => {
|
||||
return {
|
||||
section: 'messages',
|
||||
...payload
|
||||
};
|
||||
});
|
||||
|
||||
export const hideMessage = createAction(types.HIDE_MESSAGE, (payload) => {
|
||||
return {
|
||||
section: 'messages',
|
||||
...payload
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue