discourse/app/assets/javascripts/admin/addon/routes/admin-config-flags-edit.js
Krzysztof Kotlarek c3fadc7330
FEATURE: created edit and delete flags (#27484)
Allow admins to create edit and delete flags.
2024-07-03 08:45:37 +10:00

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));
}
}