DEV: Resolve topic#details computed-property.override deprecation (#20612)
This commit is contained in:
parent
059ac3d31a
commit
b1727d9748
|
@ -183,12 +183,15 @@ const Topic = RestModel.extend({
|
|||
return postsCount - 1;
|
||||
},
|
||||
|
||||
@discourseComputed
|
||||
details() {
|
||||
return this.store.createRecord("topicDetails", {
|
||||
get details() {
|
||||
return (this._details ??= this.store.createRecord("topicDetails", {
|
||||
id: this.id,
|
||||
topic: this,
|
||||
});
|
||||
}));
|
||||
},
|
||||
|
||||
set details(value) {
|
||||
return (this._details = value);
|
||||
},
|
||||
|
||||
@discourseComputed("visible")
|
||||
|
|
Loading…
Reference in New Issue