mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:51:43 +08:00
UX: add support for flagged chat message in reviewqueue (#21802)
* UX: add support for flagged chat message in reviewqueue * correctly init a chat message object --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
This commit is contained in:
parent
9215de3af7
commit
5bf2dca24a
|
@ -232,8 +232,9 @@
|
|||
color: var(--secondary);
|
||||
border-radius: 8px;
|
||||
background-color: var(--secondary-high);
|
||||
&.-flagged-post {
|
||||
background-color: var(--danger-medium);
|
||||
&.-flagged-post,
|
||||
&.-flagged-chat-message {
|
||||
background-color: var(--danger);
|
||||
}
|
||||
&.-queued-post,
|
||||
&.-queued-topic,
|
||||
|
|
|
@ -630,6 +630,8 @@ en:
|
|||
title: "User"
|
||||
reviewable_post:
|
||||
title: "Post"
|
||||
reviewable_chat_message:
|
||||
title: "Flagged chat message"
|
||||
approval:
|
||||
title: "Post Needs Approval"
|
||||
description: "We've received your new post but it needs to be approved by a moderator before it will appear. Please be patient."
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
import Component from "@glimmer/component";
|
||||
import { inject as service } from "@ember/service";
|
||||
import { cached } from "@glimmer/tracking";
|
||||
import ChatChannel from "discourse/plugins/chat/discourse/models/chat-channel";
|
||||
|
||||
export default class ReviewableChatMessage extends Component {
|
||||
@service store;
|
||||
@service chatChannelsManager;
|
||||
|
||||
@cached
|
||||
get chatChannel() {
|
||||
return this.store.createRecord(
|
||||
"chat-channel",
|
||||
this.args.reviewable.chat_channel
|
||||
);
|
||||
return ChatChannel.create(this.args.reviewable.chat_channel);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user