UX: Display "Queued Topic" if a Queued Post will create a topic

This commit is contained in:
Robin Ward 2019-06-05 14:11:04 -04:00
parent f0e73cb126
commit 58ff7216ca
2 changed files with 9 additions and 2 deletions

View File

@ -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: ""
});

View File

@ -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: