mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 13:23:15 +08:00
FIX: backport reviewable topic claim not being shown correctly
This commit is contained in:
parent
385c3fe789
commit
45296a8fe9
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user