mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 20:01:44 +08:00
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 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: ""
|
||||||
});
|
});
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user