mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 21:43:45 +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();
|
||||
},
|
||||
|
||||
@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
Block a user