mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06:00
FIX: Restore (deprecated) ability to overwrite a property (#11207)
It should be a `readOnly` but some themes/plugins still pass the `categories` property into this component, so…
This commit is contained in:
parent
803b8933fa
commit
cd6dbd3e9c
@ -4,14 +4,18 @@ import { inject as service } from "@ember/service";
|
||||
import Component from "@ember/component";
|
||||
import FilterModeMixin from "discourse/mixins/filter-mode";
|
||||
import bootbox from "bootbox";
|
||||
import { readOnly } from "@ember/object/computed";
|
||||
|
||||
export default Component.extend(FilterModeMixin, {
|
||||
router: service(),
|
||||
|
||||
tagName: "",
|
||||
|
||||
categories: readOnly("site.categoriesList"),
|
||||
// Should be a `readOnly` instead but some themes/plugins still pass
|
||||
// the `categories` property into this component
|
||||
@discourseComputed("site.categoriesList")
|
||||
categories(categoriesList) {
|
||||
return categoriesList;
|
||||
},
|
||||
|
||||
@discourseComputed("category")
|
||||
showCategoryNotifications(category) {
|
||||
|
Loading…
Reference in New Issue
Block a user