mirror of
https://github.com/flarum/framework.git
synced 2025-05-21 22:36:01 +08:00
12 lines
267 B
JavaScript
12 lines
267 B
JavaScript
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();
|
|
}
|
|
});
|