-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added proper title with link to ReviewablePostVotingComments
- Loading branch information
1 parent
928250e
commit 6ebfb0e
Showing
4 changed files
with
14 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
assets/javascripts/discourse/components/reviewable-post-voting-comment.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
assets/javascripts/discourse/components/reviewable-post-voting-comment.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import Component from "@glimmer/component"; | ||
import { cached } from "@glimmer/tracking"; | ||
import { tracked } from "@glimmer/tracking"; | ||
import { inject as service } from "@ember/service"; | ||
import ChatChannel from "discourse/plugins/chat/discourse/models/chat-channel"; | ||
|
||
export default class ReviewableChatMessage extends Component { | ||
@service store; | ||
@service chatChannelsManager; | ||
@tracked post; | ||
|
||
@cached | ||
get chatChannel() { | ||
return ChatChannel.create(this.args.reviewable.chat_channel); | ||
constructor() { | ||
super(...arguments); | ||
this.store.find("post", this.args.reviewable.post_id).then((post) => { | ||
this.post = post; | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters