discourse/app/assets/javascripts/admin/addon/routes/admin-watched-words-action.js
David Taylor 48193767bf DEV: Sort imports
Automatically generated by `eslint --fix` to satisfy the updated configuration
2023-10-10 21:46:54 +01:00

16 lines
533 B
JavaScript

import EmberObject from "@ember/object";
import DiscourseRoute from "discourse/routes/discourse";
import I18n from "I18n";
export default class AdminWatchedWordsActionRoute extends DiscourseRoute {
model(params) {
const controller = this.controllerFor("adminWatchedWordsAction");
controller.set("actionNameKey", params.action_id);
return EmberObject.create({
nameKey: params.action_id,
name: I18n.t("admin.watched_words.actions." + params.action_id),
words: controller.filteredContent,
});
}
}