discourse/app/assets/javascripts/admin/addon/routes/admin-config-flags-edit.js

11 lines
265 B
JavaScript

import Route from "@ember/routing/route";
import { service } from "@ember/service";
export default class AdminConfigFlagsEditRoute extends Route {
@service site;
model(params) {
return this.site.flagTypes.findBy("id", parseInt(params.flag_id, 10));
}
}