mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 23:33:38 -07:00
New: Plugin support
This commit is contained in:
parent
91f06801ca
commit
f15f7b48a3
171 changed files with 3277 additions and 839 deletions
|
@ -55,6 +55,7 @@ export const defaultState = {
|
|||
|
||||
export const SHOW_MESSAGE = 'app/showMessage';
|
||||
export const HIDE_MESSAGE = 'app/hideMessage';
|
||||
export const CLEAR_MESSAGES = 'app/clearMessages';
|
||||
export const SAVE_DIMENSIONS = 'app/saveDimensions';
|
||||
export const SET_VERSION = 'app/setVersion';
|
||||
export const SET_APP_VALUE = 'app/setAppValue';
|
||||
|
@ -72,6 +73,7 @@ export const setIsSidebarVisible = createAction(SET_IS_SIDEBAR_VISIBLE);
|
|||
export const setAppValue = createAction(SET_APP_VALUE);
|
||||
export const showMessage = createAction(SHOW_MESSAGE);
|
||||
export const hideMessage = createAction(HIDE_MESSAGE);
|
||||
export const clearMessages = createAction(CLEAR_MESSAGES);
|
||||
export const pingServer = createThunk(PING_SERVER);
|
||||
export const fetchTranslations = createThunk(FETCH_TRANSLATIONS);
|
||||
|
||||
|
@ -192,6 +194,14 @@ export const reducers = createHandleActions({
|
|||
return updateSectionState(state, messagesSection, newState);
|
||||
},
|
||||
|
||||
[CLEAR_MESSAGES]: function(state) {
|
||||
const newState = getSectionState(state, messagesSection);
|
||||
|
||||
newState.items = [];
|
||||
|
||||
return updateSectionState(state, messagesSection, newState);
|
||||
},
|
||||
|
||||
[SET_APP_VALUE]: function(state, { payload }) {
|
||||
const newState = Object.assign(getSectionState(state, section), payload);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue