mirror of
https://github.com/discourse/discourse.git
synced 2024-12-09 16:43:43 +08:00
14 lines
340 B
JavaScript
14 lines
340 B
JavaScript
import { service } from "@ember/service";
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default class AdminWatchedWordsIndexRoute extends DiscourseRoute {
|
|
@service router;
|
|
|
|
beforeModel() {
|
|
this.router.replaceWith(
|
|
"adminWatchedWords.action",
|
|
this.modelFor("adminWatchedWords")[0].nameKey
|
|
);
|
|
}
|
|
}
|