mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 00:44:12 +08:00
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();
|
return type.dasherize();
|
||||||
},
|
},
|
||||||
|
|
||||||
@discourseComputed("reviewable.topic_id", "reviewable.removed_topic_id")
|
@discourseComputed(
|
||||||
topicId(topicId, removedTopicId) {
|
"reviewable.topic",
|
||||||
return topicId || removedTopicId;
|
"reviewable.topic_id",
|
||||||
|
"reviewable.removed_topic_id"
|
||||||
|
)
|
||||||
|
topicId(topic, topicId, removedTopicId) {
|
||||||
|
return topic.id || topicId || removedTopicId;
|
||||||
},
|
},
|
||||||
|
|
||||||
@discourseComputed("siteSettings.reviewable_claiming", "topicId")
|
@discourseComputed("siteSettings.reviewable_claiming", "topicId")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user