Add button to manually mark all notifications as read

This commit is contained in:
Thibaut Girka
2020-09-15 23:42:58 +02:00
committed by ThibG
parent 94c290d7d2
commit f1c0cf9806
3 changed files with 41 additions and 3 deletions

View File

@ -45,6 +45,8 @@ export const NOTIFICATIONS_UNMOUNT = 'NOTIFICATIONS_UNMOUNT';
export const NOTIFICATIONS_SET_VISIBILITY = 'NOTIFICATIONS_SET_VISIBILITY';
export const NOTIFICATIONS_MARK_AS_READ = 'NOTIFICATIONS_MARK_AS_READ';
defineMessages({
mention: { id: 'notification.mention', defaultMessage: '{name} mentioned you' },
});
@ -318,3 +320,9 @@ export function setFilter (filterType) {
dispatch(saveSettings());
};
};
export function markNotificationsAsRead() {
return {
type: NOTIFICATIONS_MARK_AS_READ,
};
};