2019-10-22 09:46:10 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2019-10-29 15:23:50 -04:00
|
|
|
import EmberObject from "@ember/object";
|
2020-05-13 16:23:41 -04:00
|
|
|
import I18n from "I18n";
|
2019-10-22 09:46:10 -04:00
|
|
|
|
|
|
|
export default DiscourseRoute.extend({
|
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
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|