diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-02 15:14:26 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-02 15:14:26 +0200 |
commit | 1fce687f8e03d78b4b842422fc6621bba439e1cd (patch) | |
tree | 793851bc7434318ca2521b989adde66981072b59 /app/assets/javascripts/components/reducers/notifications.jsx | |
parent | 4909bbf415ca02093d0223d0d478eb06cb5cf78b (diff) |
Unreblogging and unfavouriting from the UI
Diffstat (limited to 'app/assets/javascripts/components/reducers/notifications.jsx')
-rw-r--r-- | app/assets/javascripts/components/reducers/notifications.jsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/reducers/notifications.jsx b/app/assets/javascripts/components/reducers/notifications.jsx index 8011c419d..63a814bef 100644 --- a/app/assets/javascripts/components/reducers/notifications.jsx +++ b/app/assets/javascripts/components/reducers/notifications.jsx @@ -1,6 +1,11 @@ import { COMPOSE_SUBMIT_FAIL, COMPOSE_UPLOAD_FAIL } from '../actions/compose'; import { FOLLOW_SUBMIT_FAIL } from '../actions/follow'; -import { REBLOG_FAIL, FAVOURITE_FAIL } from '../actions/interactions'; +import { + REBLOG_FAIL, + UNREBLOG_FAIL, + FAVOURITE_FAIL, + UNFAVOURITE_FAIL +} from '../actions/interactions'; import { TIMELINE_REFRESH_FAIL, TIMELINE_EXPAND_FAIL @@ -55,6 +60,8 @@ export default function notifications(state = initialState, action) { case ACCOUNT_TIMELINE_EXPAND_FAIL: case STATUS_FETCH_FAIL: case STATUS_DELETE_FAIL: + case UNREBLOG_FAIL: + case UNFAVOURITE_FAIL: return notificationFromError(state, action.error); case NOTIFICATION_DISMISS: return state.filterNot(item => item.get('key') === action.notification.key); |