2024-07-03 06:45:37 +08:00
|
|
|
import { service } from "@ember/service";
|
2024-08-27 07:47:19 +08:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2024-11-20 04:45:18 +08:00
|
|
|
import { i18n } from "discourse-i18n";
|
2024-07-03 06:45:37 +08:00
|
|
|
|
2024-08-27 07:47:19 +08:00
|
|
|
export default class AdminConfigFlagsEditRoute extends DiscourseRoute {
|
2024-07-03 06:45:37 +08:00
|
|
|
@service site;
|
|
|
|
|
|
|
|
model(params) {
|
|
|
|
return this.site.flagTypes.findBy("id", parseInt(params.flag_id, 10));
|
|
|
|
}
|
2024-08-27 07:47:19 +08:00
|
|
|
|
|
|
|
titleToken() {
|
2024-11-20 04:45:18 +08:00
|
|
|
return i18n("admin.config_areas.flags.edit_header");
|
2024-08-27 07:47:19 +08:00
|
|
|
}
|
2024-07-03 06:45:37 +08:00
|
|
|
}
|