1
0
mirror of https://github.com/flarum/core.git synced 2025-10-19 02:36:08 +02:00
Files
php-flarum/js/forum/src/components/post-discussion-renamed.js
2015-05-05 17:07:12 +09:30

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'
});
}
}