2017-06-28 16:56:44 -04:00
|
|
|
export default Discourse.Route.extend({
|
|
|
|
model(params) {
|
2018-06-15 11:03:24 -04:00
|
|
|
this.controllerFor("adminWatchedWordsAction").set(
|
|
|
|
"actionNameKey",
|
|
|
|
params.action_id
|
|
|
|
);
|
|
|
|
let filteredContent = this.controllerFor("adminWatchedWordsAction").get(
|
|
|
|
"filteredContent"
|
|
|
|
);
|
2017-06-28 16:56:44 -04:00
|
|
|
return Ember.Object.create({
|
|
|
|
nameKey: params.action_id,
|
2018-06-15 11:03:24 -04:00
|
|
|
name: I18n.t("admin.watched_words.actions." + params.action_id),
|
2017-06-28 16:56:44 -04:00
|
|
|
words: filteredContent
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|