mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 18:04:38 +08:00
b56e9ad656
* DEV: Use site setting instead * DEV: Use .length instead of a different property * DEV: Simplify watched word code
18 lines
397 B
JavaScript
18 lines
397 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
import WatchedWord from "admin/models/watched-word";
|
|
|
|
export default DiscourseRoute.extend({
|
|
queryParams: {
|
|
filter: { replace: true },
|
|
},
|
|
|
|
model() {
|
|
return WatchedWord.findAll();
|
|
},
|
|
|
|
afterModel(model) {
|
|
const controller = this.controllerFor("adminWatchedWords");
|
|
controller.set("allWatchedWords", model);
|
|
},
|
|
});
|