1
0
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:
Toby Zerner
2015-07-20 18:14:42 +09:30
parent 27ed9ab636
commit 1ad057d4d7
27 changed files with 387 additions and 303 deletions

View File

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