-
Matiss Janis Aboltins authored
Closes #1069 I've not actually tested this change. Which is why I'm not changing it to direct links (as they might not work). Instead I'm just applying a very quick patch so the message would not be misleading anymore.
Matiss Janis Aboltins authoredCloses #1069 I've not actually tested this change. Which is why I'm not changing it to direct links (as they might not work). Instead I'm just applying a very quick patch so the message would not be misleading anymore.
notifications.ts 667 B
import * as uuid from '../../platform/uuid';
import * as constants from '../constants';
export function addNotification(notification) {
return {
type: constants.ADD_NOTIFICATION,
notification: {
...notification,
id: notification.id || uuid.v4Sync(),
},
};
}
export function addGenericErrorNotification() {
return addNotification({
type: 'error',
message:
'Something internally went wrong. You may want to restart the app if anything looks wrong. ' +
'Please report this as a new issue on Github.',
});
}
export function removeNotification(id) {
return {
type: constants.REMOVE_NOTIFICATION,
id,
};
}