1
0
mirror of https://github.com/flarum/core.git synced 2025-10-14 08:24:28 +02:00

Refactor post components and controls

This commit is contained in:
Toby Zerner
2015-05-05 17:07:12 +09:30
parent 762137c6df
commit 11b39605e2
7 changed files with 126 additions and 128 deletions

View File

@@ -4,8 +4,8 @@ export default class Notification extends Component {
view() {
var notification = this.props.notification;
return m('div.notification', {
classNames: !notification.isRead ? 'unread' : '',
return m('div.notification.notification-'+notification.contentType(), {
classNames: !notification.isRead() ? 'unread' : '',
onclick: this.read.bind(this)
}, this.content());
}