mirror of
https://github.com/flarum/core.git
synced 2025-08-01 22:20:21 +02:00
Update for evented API
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import EventPost from 'flarum/components/EventPost';
|
||||
|
||||
export default class DiscussionStickiedPost extends EventPost {
|
||||
icon() {
|
||||
return 'thumb-tack';
|
||||
}
|
||||
|
||||
descriptionKey() {
|
||||
return this.props.post.content().sticky
|
||||
? 'sticky.discussion_stickied_post'
|
||||
: 'sticky.discussion_unstickied_post';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user