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

6 lines
163 B
JavaScript

export default Discourse.Route.extend({
beforeModel() {
this.replaceWith('adminWatchedWords.action', this.modelFor('adminWatchedWords')[0].nameKey);
}
});