mirror of
https://github.com/flarum/core.git
synced 2025-07-28 20:20:34 +02:00
Improved consistency for existing core translation key names. See flarum/core#265 - Completely overhauled core en.yml - Replaced existing key names in all core JS files to match - Extracted a hardcoded string in IndexPage.js - Combined two app.trans calls in DiscussionControls.js - Removed hardcoded spaces from LogInModal.js and SignUpModal.js - Added two new keys from DiscussionControls.js (soft delete) - Created two new “reused keys” to YML to accommodate same
26 lines
663 B
JavaScript
26 lines
663 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.notifications_discussion_renamed_text', {user: this.props.notification.sender()});
|
|
}
|
|
}
|