2019-10-30 03:23:50 +08:00
|
|
|
import EmberObject from "@ember/object";
|
2023-10-11 02:38:59 +08:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2024-11-20 04:45:18 +08:00
|
|
|
import { i18n } from "discourse-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,
|
2024-11-20 04:45:18 +08:00
|
|
|
name: i18n("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
|
|
|
}
|
|
|
|
}
|