2023-08-21 17:53:54 -04:00
|
|
|
import { inject as service } from "@ember/service";
|
2023-10-10 14:38:59 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2019-10-22 09:46:10 -04:00
|
|
|
|
2023-03-15 09:17:51 -04:00
|
|
|
export default class AdminWatchedWordsIndexRoute extends DiscourseRoute {
|
2023-08-21 17:53:54 -04:00
|
|
|
@service router;
|
|
|
|
|
2017-06-28 16:56:44 -04:00
|
|
|
beforeModel() {
|
2023-08-21 17:53:54 -04:00
|
|
|
this.router.replaceWith(
|
2017-06-28 16:56:44 -04:00
|
|
|
"adminWatchedWords.action",
|
|
|
|
this.modelFor("adminWatchedWords")[0].nameKey
|
|
|
|
);
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|