mirror of
https://github.com/flarum/core.git
synced 2025-10-19 02:36:08 +02:00
15 lines
458 B
JavaScript
15 lines
458 B
JavaScript
import PostActivity from 'flarum/components/post-activity';
|
|
|
|
export default class PostDiscussionRenamed extends PostActivity {
|
|
view() {
|
|
var post = this.props.post;
|
|
var oldTitle = post.content()[0];
|
|
var newTitle = post.content()[1];
|
|
|
|
return super.view(['changed the title from ', m('strong.old-title', oldTitle), ' to ', m('strong.new-title', newTitle), '.'], {
|
|
className: 'post-discussion-renamed',
|
|
icon: 'pencil'
|
|
});
|
|
}
|
|
}
|