mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:51:50 +08:00
18 lines
424 B
JavaScript
18 lines
424 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
import WatchedWord from "admin/models/watched-word";
|
|
|
|
export default class AdminWatchedWordsRoute extends DiscourseRoute {
|
|
queryParams = {
|
|
filter: { replace: true },
|
|
};
|
|
|
|
model() {
|
|
return WatchedWord.findAll();
|
|
}
|
|
|
|
afterModel(model) {
|
|
const controller = this.controllerFor("adminWatchedWords");
|
|
controller.set("allWatchedWords", model);
|
|
}
|
|
}
|