mirror of
https://github.com/flarum/framework.git
synced 2025-02-24 08:49:56 +08:00
10 lines
279 B
JavaScript
10 lines
279 B
JavaScript
import EventPost from 'flarum/components/event-post';
|
|
|
|
export default class DiscussionStickiedPost extends EventPost {
|
|
view() {
|
|
var post = this.props.post;
|
|
|
|
return super.view('thumb-tack', [post.content().sticky ? 'stickied' : 'unstickied', ' the discussion.']);
|
|
}
|
|
}
|