discourse/app/assets/javascripts/admin/addon/routes/admin-customize-form-templates-index.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

15 lines
338 B
JavaScript

import { action } from "@ember/object";
import DiscourseRoute from "discourse/routes/discourse";
import FormTemplate from "admin/models/form-template";
export default class AdminCustomizeFormTemplatesIndex extends DiscourseRoute {
model() {
return FormTemplate.findAll();
}
@action
reloadModel() {
this.refresh();
}
}