A platform for community discussion. Free, open, simple.
DEV: Fix `ember/no-incorrect-computed-macros` lint (#29107)
Jarek Radoszd6961c9a35b9
diff --git a/app/assets/javascripts/select-kit/addon/components/category-notifications-button.js b/app/assets/javascripts/select-kit/addon/components/category-notifications-button.jsindex fb57f40115b..b26e4c9b51a 100644--- a/app/assets/javascripts/select-kit/addon/components/category-notifications-button.js+++ b/app/assets/javascripts/select-kit/addon/components/category-notifications-button.js@@ -1,4 +1,4 @@-import { or } from "@ember/object/computed";+import { readOnly } from "@ember/object/computed";import { classNames } from "@ember-decorators/component";import I18n from "discourse-i18n";import NotificationOptionsComponent from "select-kit/components/notifications-button";@@ -12,5 +12,5 @@ import { pluginApiIdentifiers, selectKitOptions } from "./select-kit";@pluginApiIdentifiers(["category-notifications-button"])@classNames("category-notifications-button")export default class CategoryNotificationsButton extends NotificationOptionsComponent {- @or("category.deleted") isHidden;+ @readOnly("category.deleted") isHidden;}