mirror of
https://github.com/discourse/discourse.git
synced 2025-01-20 14:57:48 +08:00
e5311ab645
* DEV: Discourse.Route -> DiscourseRoute with import * ran prettier on all routes * prettiered one more file
19 lines
513 B
JavaScript
19 lines
513 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default DiscourseRoute.extend({
|
|
model(params) {
|
|
this.controllerFor("adminWatchedWordsAction").set(
|
|
"actionNameKey",
|
|
params.action_id
|
|
);
|
|
let filteredContent = this.controllerFor("adminWatchedWordsAction").get(
|
|
"filteredContent"
|
|
);
|
|
return Ember.Object.create({
|
|
nameKey: params.action_id,
|
|
name: I18n.t("admin.watched_words.actions." + params.action_id),
|
|
words: filteredContent
|
|
});
|
|
}
|
|
});
|