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

11 lines
238 B
JavaScript

import DiscourseRoute from "discourse/routes/discourse";
export default DiscourseRoute.extend({
beforeModel() {
this.replaceWith(
"adminWatchedWords.action",
this.modelFor("adminWatchedWords")[0].nameKey
);
}
});