FIX: Claim reviewable button did not show up for all topics
Follow-up to 514c22e64b
.
This commit is contained in:
parent
603c56f71c
commit
9314751e5c
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue