DEV: Fix a computed property override (#239)

DEV: Fix a computed property override (#239)

diff --git a/assets/javascripts/discourse-assign/controllers/group-assigned-show.js.es6 b/assets/javascripts/discourse-assign/controllers/group-assigned-show.js.es6
index d6640e2..53bb7fc 100644
--- a/assets/javascripts/discourse-assign/controllers/group-assigned-show.js.es6
+++ b/assets/javascripts/discourse-assign/controllers/group-assigned-show.js.es6
@@ -1,6 +1,5 @@
 import UserTopicsList from "discourse/controllers/user-topics-list";
-import { alias } from "@ember/object/computed";
-import discourseComputed from "discourse-common/utils/decorators";
+import { alias, readOnly } from "@ember/object/computed";
 import discourseDebounce from "discourse-common/lib/debounce";
 import { INPUT_DELAY } from "discourse-common/config/environment";
 import { inject as controller } from "@ember/controller";
@@ -19,10 +18,7 @@ export default UserTopicsList.extend({
 
   queryParams: ["order", "ascending", "search"],
 
-  @discourseComputed("search")
-  searchTerm(search) {
-    return search;
-  },
+  searchTerm: readOnly("search"),
 
   _setSearchTerm(searchTerm) {
     this.set("search", searchTerm);
diff --git a/assets/javascripts/discourse-assign/controllers/user-activity-assigned.js.es6 b/assets/javascripts/discourse-assign/controllers/user-activity-assigned.js.es6
index a5172ae..16b6430 100644
--- a/assets/javascripts/discourse-assign/controllers/user-activity-assigned.js.es6
+++ b/assets/javascripts/discourse-assign/controllers/user-activity-assigned.js.es6
@@ -8,6 +8,7 @@ import { action } from "@ember/object";
 import getURL from "discourse-common/lib/get-url";
 import { iconHTML } from "discourse-common/lib/icon-library";
 import I18n from "I18n";
+import { readOnly } from "@ember/object/computed";
 
 export default UserTopicsList.extend({
   user: controller(),
@@ -17,9 +18,11 @@ export default UserTopicsList.extend({
   ascending: false,
   search: "",
 
-  @discourseComputed("search")
-  searchTerm(search) {
-    return search;
+  searchTerm: readOnly("search"),
+
+  _setSearchTerm(searchTerm) {
+    this.set("search", searchTerm);
+    this.refreshModel();
   },
 
   @discourseComputed("model.topics.length", "search")
@@ -35,11 +38,6 @@ export default UserTopicsList.extend({
     }).htmlSafe();
   },
 
-  _setSearchTerm(searchTerm) {
-    this.set("search", searchTerm);
-    this.refreshModel();
-  },
-
   refreshModel() {
     this.set("loading", true);
     this.store
diff --git a/assets/javascripts/discourse-assign/routes/group-assigned-show.js.es6 b/assets/javascripts/discourse-assign/routes/group-assigned-show.js.es6
index b921bfc..eca085f 100644
--- a/assets/javascripts/discourse-assign/routes/group-assigned-show.js.es6
+++ b/assets/javascripts/discourse-assign/routes/group-assigned-show.js.es6
@@ -39,7 +39,7 @@ export default DiscourseRoute.extend({
   setupController(controller, model) {
     controller.setProperties({
       model,
-      searchTerm: this.currentModel.params.search,
+      search: this.currentModel.params.search,
     });
   },
 

GitHub sha: ab0c63b1fbc20a3ade644e3c41db308b45fddbef

This commit appears in #239 which was approved by martin. It was merged by CvX.