Add button to dismiss desktop notifications permissions banner (#15141)
This commit is contained in:
parent
f1858f08c2
commit
4790a126be
5 changed files with 46 additions and 7 deletions
|
@ -12,6 +12,7 @@ import {
|
|||
NOTIFICATIONS_MARK_AS_READ,
|
||||
NOTIFICATIONS_SET_BROWSER_SUPPORT,
|
||||
NOTIFICATIONS_SET_BROWSER_PERMISSION,
|
||||
NOTIFICATIONS_DISMISS_BROWSER_PERMISSION,
|
||||
} from '../actions/notifications';
|
||||
import {
|
||||
ACCOUNT_BLOCK_SUCCESS,
|
||||
|
@ -250,6 +251,8 @@ export default function notifications(state = initialState, action) {
|
|||
return state.set('browserSupport', action.value);
|
||||
case NOTIFICATIONS_SET_BROWSER_PERMISSION:
|
||||
return state.set('browserPermission', action.value);
|
||||
case NOTIFICATIONS_DISMISS_BROWSER_PERMISSION:
|
||||
return state.set('browserPermission', 'denied');
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue