mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
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;
|