Project

General

Profile

« Previous | Next » 

Revision ea0d94e6

Added by Ohad Levy about 7 years ago

fixes #19192 - adds mark all as read notification action

This implements missing feature from patternfly ( see http://www.patternfly.org/pattern-library/communication/notification-drawer/#/code/angular)

View differences:

webpack/assets/javascripts/react_app/redux/actions/notifications/index.js
NOTIFICATIONS_GET_NOTIFICATIONS,
NOTIFICATIONS_TOGGLE_DRAWER,
NOTIFICATIONS_SET_EXPANDED_GROUP,
NOTIFICATIONS_MARK_AS_READ
NOTIFICATIONS_MARK_AS_READ,
NOTIFICATIONS_MARK_GROUP_AS_READ
} from '../../consts';
import {
notificationsDrawer as sessionStorage
......
API.markNotificationAsRead(id);
};
export const onMarkGroupAsRead = (group) => dispatch => {
dispatch({
type: NOTIFICATIONS_MARK_GROUP_AS_READ,
payload: {
group
}
});
API.markGroupNotificationAsRead(group);
};
export const expandGroup = group => (dispatch, getState) => {
const currentExpanded = getState().notifications.expandedGroup;

Also available in: Unified diff