Started adding frontend notifications, fixing firefox file upload bug
This commit is contained in:
@@ -10,4 +10,5 @@ export const FILE_LIST = 'FILE_LIST';
|
||||
export const CHANGE_FILE_SELECTION = 'CHANGE_FILE_SELECTION';
|
||||
export const NEW_RSS_FEED_STORE = 'NEW_RSS_FEED_STORE';
|
||||
export const RSS_MODAL_OPEN_STATE = 'RSS_MODAL_OPEN_STATE';
|
||||
export const RSS_TORRENT_LIST = 'RSS_TORRENT_LIST';
|
||||
export const RSS_TORRENT_LIST = 'RSS_TORRENT_LIST';
|
||||
export const SERVER_MESSAGE = 'SERVER_MESSAGE';
|
@@ -18,6 +18,7 @@ const initialState = {
|
||||
RSSList: [],
|
||||
RSSTorrentList: [],
|
||||
RSSModalOpen: false,
|
||||
serverMessage: [],
|
||||
}
|
||||
|
||||
|
||||
@@ -97,6 +98,13 @@ const reducer = (state = initialState, action) => {
|
||||
...state,
|
||||
RSSModalOpen: action.RSSModalOpen
|
||||
}
|
||||
|
||||
case actionTypes.SERVER_MESSAGE:
|
||||
console.log("New server push message", action.serverMessage)
|
||||
return {
|
||||
...state,
|
||||
serverMessage: action.serverMessage
|
||||
}
|
||||
|
||||
case actionTypes.SET_BUTTON_STATE:
|
||||
if (action.buttonState.length === 0) { //if selection is empty buttons will be default and selectionHashes will be blanked out and pushed to redux
|
||||
|
Reference in New Issue
Block a user