UX: Display "Queued Topic" if a Queued Post will create a topic
This commit is contained in:
parent
f0e73cb126
commit
58ff7216ca
|
@ -10,8 +10,13 @@ export const IGNORED = 3;
|
|||
export const DELETED = 4;
|
||||
|
||||
export default RestModel.extend({
|
||||
@computed("type")
|
||||
humanType(type) {
|
||||
@computed("type", "topic")
|
||||
humanType(type, topic) {
|
||||
// Display "Queued Topic" if the post will create a topic
|
||||
if (type === "ReviewableQueuedPost" && !topic) {
|
||||
type = "ReviewableQueuedTopic";
|
||||
}
|
||||
|
||||
return I18n.t(`review.types.${type.underscore()}.title`, {
|
||||
defaultValue: ""
|
||||
});
|
||||
|
|
|
@ -486,6 +486,8 @@ en:
|
|||
reviewable_flagged_post:
|
||||
title: "Flagged Post"
|
||||
flagged_by: "Flagged By"
|
||||
reviewable_queued_topic:
|
||||
title: "Queued Topic"
|
||||
reviewable_queued_post:
|
||||
title: "Queued Post"
|
||||
reviewable_user:
|
||||
|
|
Loading…
Reference in New Issue