mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
Implement notifications
This commit is contained in:
11
ember/app/components/application/notification.js
Normal file
11
ember/app/components/application/notification.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
classNames: ['notification'],
|
||||
classNameBindings: ['notification.isRead::unread'],
|
||||
|
||||
click: function() {
|
||||
console.log('click')
|
||||
this.get('notification').set('isRead', true).save();
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user