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;
|
return postsCount - 1;
|
||||||
},
|
},
|
||||||
|
|
||||||
@discourseComputed
|
get details() {
|
||||||
details() {
|
return (this._details ??= this.store.createRecord("topicDetails", {
|
||||||
return this.store.createRecord("topicDetails", {
|
|
||||||
id: this.id,
|
id: this.id,
|
||||||
topic: this,
|
topic: this,
|
||||||
});
|
}));
|
||||||
|
},
|
||||||
|
|
||||||
|
set details(value) {
|
||||||
|
return (this._details = value);
|
||||||
},
|
},
|
||||||
|
|
||||||
@discourseComputed("visible")
|
@discourseComputed("visible")
|
||||||
|
|
Loading…
Reference in New Issue