FIX: Claim reviewable button did not show up for all topics

Follow-up to 514c22e64b.
This commit is contained in:
Dan Ungureanu 2020-02-26 10:36:35 +02:00
parent 603c56f71c
commit 9314751e5c
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84

View File

@ -22,9 +22,13 @@ export default Component.extend({
return type.dasherize();
},
@discourseComputed("reviewable.topic_id", "reviewable.removed_topic_id")
topicId(topicId, removedTopicId) {
return topicId || removedTopicId;
@discourseComputed(
"reviewable.topic",
"reviewable.topic_id",
"reviewable.removed_topic_id"
)
topicId(topic, topicId, removedTopicId) {
return topic.id || topicId || removedTopicId;
},
@discourseComputed("siteSettings.reviewable_claiming", "topicId")