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 const DELETED = 4;
export default RestModel.extend({ export default RestModel.extend({
@computed("type") @computed("type", "topic")
humanType(type) { 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`, { return I18n.t(`review.types.${type.underscore()}.title`, {
defaultValue: "" defaultValue: ""
}); });

View File

@ -486,6 +486,8 @@ en:
reviewable_flagged_post: reviewable_flagged_post:
title: "Flagged Post" title: "Flagged Post"
flagged_by: "Flagged By" flagged_by: "Flagged By"
reviewable_queued_topic:
title: "Queued Topic"
reviewable_queued_post: reviewable_queued_post:
title: "Queued Post" title: "Queued Post"
reviewable_user: reviewable_user: