mirror of
https://github.com/discourse/discourse.git
synced 2024-12-08 11:33:39 +08:00
c3fadc7330
Allow admins to create edit and delete flags.
11 lines
265 B
JavaScript
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));
|
|
}
|
|
}
|