2019-10-22 09:46:10 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2017-06-28 16:56:44 -04:00
|
|
|
import WatchedWord from "admin/models/watched-word";
|
|
|
|
|
2023-03-15 09:17:51 -04:00
|
|
|
export default class AdminWatchedWordsRoute extends DiscourseRoute {
|
|
|
|
queryParams = {
|
2017-06-28 16:56:44 -04:00
|
|
|
filter: { replace: true },
|
2023-03-15 09:17:51 -04:00
|
|
|
};
|
2017-06-28 16:56:44 -04:00
|
|
|
|
|
|
|
model() {
|
|
|
|
return WatchedWord.findAll();
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
2017-06-28 16:56:44 -04:00
|
|
|
|
2021-05-27 12:20:26 -04:00
|
|
|
afterModel(model) {
|
|
|
|
const controller = this.controllerFor("adminWatchedWords");
|
|
|
|
controller.set("allWatchedWords", model);
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|