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:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user