mirror of
https://github.com/flarum/core.git
synced 2025-07-29 04:30:56 +02:00
26 lines
657 B
JavaScript
26 lines
657 B
JavaScript
import Notification from 'flarum/components/Notification';
|
|
|
|
/**
|
|
* The `DiscussionRenamedNotification` component displays a notification which
|
|
* indicates that a discussion has had its title changed.
|
|
*
|
|
* ### Props
|
|
*
|
|
* - All of the props for Notification
|
|
*/
|
|
export default class DiscussionRenamedNotification extends Notification {
|
|
icon() {
|
|
return 'pencil';
|
|
}
|
|
|
|
href() {
|
|
const notification = this.props.notification;
|
|
|
|
return app.route.discussion(notification.subject(), notification.content().postNumber);
|
|
}
|
|
|
|
content() {
|
|
return app.trans('core.discussion_renamed_notification', {user: this.props.notification.sender()});
|
|
}
|
|
}
|