FIX: backport reviewable topic claim not being shown correctly

This commit is contained in:
Jeff Wong 2020-03-30 15:23:16 -07:00
parent 385c3fe789
commit 45296a8fe9

View File

@ -22,10 +22,13 @@ export default Component.extend({
return type.dasherize();
},
@discourseComputed("reviewable.topic", "reviewable.removed_topic_id")
topicId(topic, removedTopicId) {
let topicId = topic ? topic.id : null;
return topicId || removedTopicId;
@discourseComputed(
"reviewable.topic",
"reviewable.topic_id",
"reviewable.removed_topic_id"
)
topicId(topic, topicId, removedTopicId) {
return (topic && topic.id) || topicId || removedTopicId;
},
@discourseComputed("siteSettings.reviewable_claiming", "topicId")