discourse/app/assets/javascripts/admin/addon/routes/admin-customize-form-templates-edit.js
Jarek Radosz cbfd596b1b
DEV: Remove unnecessary setupController methods (#29592)
and call super instead of manually setting model
2024-11-05 13:17:32 +01:00

9 lines
260 B
JavaScript

import DiscourseRoute from "discourse/routes/discourse";
import FormTemplate from "admin/models/form-template";
export default class AdminCustomizeFormTemplatesEdit extends DiscourseRoute {
model(params) {
return FormTemplate.findById(params.id);
}
}