1
0
mirror of https://github.com/flarum/core.git synced 2025-10-14 16:34:26 +02:00

Replace Ember app with Mithril app

This commit is contained in:
Toby Zerner
2015-04-25 22:28:39 +09:30
parent 6f67b8c247
commit b68a4711dc
377 changed files with 5641 additions and 7330 deletions

View File

@@ -0,0 +1,20 @@
import Component from 'flarum/component';
export default class Notification extends Component {
view() {
var notification = this.props.notification;
return m('div.notification', {
classNames: !notification.isRead ? 'unread' : '',
onclick: this.read.bind(this)
}, this.content());
}
content() {
//
}
read() {
this.props.notification.save({isRead: true});
}
}