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