2019-10-29 15:23:50 -04:00
|
|
|
import EmberObject from "@ember/object";
|
2023-10-10 14:38:59 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2023-10-18 06:07:09 -04:00
|
|
|
import I18n from "discourse-i18n";
|
2019-10-22 09:46:10 -04:00
|
|
|
|
2023-03-15 09:17:51 -04:00
|
|
|
export default class AdminWatchedWordsActionRoute extends DiscourseRoute {
|
2017-06-28 16:56:44 -04:00
|
|
|
model(params) {
|
2021-05-27 12:20:26 -04:00
|
|
|
const controller = this.controllerFor("adminWatchedWordsAction");
|
|
|
|
controller.set("actionNameKey", params.action_id);
|
2019-10-29 15:23:50 -04:00
|
|
|
return EmberObject.create({
|
2017-06-28 16:56:44 -04:00
|
|
|
nameKey: params.action_id,
|
|
|
|
name: I18n.t("admin.watched_words.actions." + params.action_id),
|
2021-05-27 12:20:26 -04:00
|
|
|
words: controller.filteredContent,
|
2017-06-28 16:56:44 -04:00
|
|
|
});
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|