discourse/app/assets/javascripts/admin/addon/routes/admin-watched-words-index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
340 B
JavaScript
Raw Normal View History

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
);
}
}