A platform for community discussion. Free, open, simple.
DEV: Resolve `observes` deprecation in full-page-search (#28196)
David Taylor87450f677b32
diff --git a/app/assets/javascripts/discourse/app/controllers/full-page-search.js b/app/assets/javascripts/discourse/app/controllers/full-page-search.jsindex 5bcbc70af23..ec4ed5e0c9a 100644--- a/app/assets/javascripts/discourse/app/controllers/full-page-search.js+++ b/app/assets/javascripts/discourse/app/controllers/full-page-search.js@@ -3,6 +3,7 @@ import { action, computed } from "@ember/object";import { gt, or } from "@ember/object/computed";import { service } from "@ember/service";import { isEmpty } from "@ember/utils";+import { observes } from "@ember-decorators/object";import { Promise } from "rsvp";import { ajax } from "discourse/lib/ajax";import BulkSelectHelper from "discourse/lib/bulk-select-helper";@@ -22,10 +23,7 @@ import { escapeExpression } from "discourse/lib/utilities";import { scrollTop } from "discourse/mixins/scroll-top";import Category from "discourse/models/category";import Composer from "discourse/models/composer";-import discourseComputed, {- bind,- observes,-} from "discourse-common/utils/decorators";+import discourseComputed, { bind } from "discourse-common/utils/decorators";import I18n from "discourse-i18n";const SortOrders = [