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