2019-10-30 03:23:50 +08:00
|
|
|
import EmberObject from "@ember/object";
|
2019-10-22 21:46:10 +08:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
|
|
|
|
export default DiscourseRoute.extend({
|
2017-06-29 04:56:44 +08:00
|
|
|
model(params) {
|
2018-06-15 23:03:24 +08:00
|
|
|
this.controllerFor("adminWatchedWordsAction").set(
|
|
|
|
"actionNameKey",
|
|
|
|
params.action_id
|
|
|
|
);
|
|
|
|
let filteredContent = this.controllerFor("adminWatchedWordsAction").get(
|
|
|
|
"filteredContent"
|
|
|
|
);
|
2019-10-30 03:23:50 +08:00
|
|
|
return EmberObject.create({
|
2017-06-29 04:56:44 +08:00
|
|
|
nameKey: params.action_id,
|
2018-06-15 23:03:24 +08:00
|
|
|
name: I18n.t("admin.watched_words.actions." + params.action_id),
|
2017-06-29 04:56:44 +08:00
|
|
|
words: filteredContent
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|