mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
107dd32862
Issue #3160 - Use notifications API to display available update notification. - Remove update_notification handlebars helper as now both the check for an available update and the notification handling is run from the server's admin controller index method. - Bind the notification's location property to a css class for styling. - Refactor Ember notifications to better handle notification objects. Move responsibility for css class generation onto the notification component. - Refactor gh-notifications component to take a location argument that's used to assign a css class and filter notifications.
9 lines
232 B
JavaScript
9 lines
232 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')
|
|
});
|
|
|
|
export default Notification;
|