mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 02:44:33 +03:00
f1cf98efd9
closes #3057 - add Notification model - update injected Notifications object to handle persistent notifications - load server notifications on setup if logged in otherwise on successful sign-in - changed all existing notifications.closeAll calls to closePassive - fixed dismissable/dismissible spelling in server API & tests - add notifications.closeNotification method so DELETE calls can be made for server-originating notifications
14 lines
337 B
JavaScript
14 lines
337 B
JavaScript
var Notification = DS.Model.extend({
|
|
dismissible: DS.attr('boolean'),
|
|
location: DS.attr('string'),
|
|
status: DS.attr('string'),
|
|
type: DS.attr('string'),
|
|
message: DS.attr('string'),
|
|
|
|
typeClass: function () {
|
|
return 'notification-' + this.get('type');
|
|
}.property('type')
|
|
});
|
|
|
|
export default Notification;
|