mirror of
https://github.com/flarum/framework.git
synced 2025-04-25 22:24:04 +08:00
Clean up discussion renamed notification
This commit is contained in:
parent
e6a987ff12
commit
ee1302c9ef
@ -19,13 +19,8 @@ export default class NotificationDiscussionRenamed extends Notification {
|
|||||||
m('div.notification-info', [
|
m('div.notification-info', [
|
||||||
icon('pencil'),
|
icon('pencil'),
|
||||||
' Renamed by ', username(notification.sender()),
|
' Renamed by ', username(notification.sender()),
|
||||||
notification.additionalUnreadCount() ? ' and '+notification.additionalUnreadCount()+' others' : '',
|
|
||||||
' ', humanTime(notification.time())
|
' ', humanTime(notification.time())
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
read() {
|
|
||||||
this.props.notification.save({isRead: true});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user