discourse/app/assets/javascripts/admin/addon/routes/admin-customize-form-templates-index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
418 B
JavaScript
Raw Normal View History

2023-02-09 03:21:39 +08:00
import { action } from "@ember/object";
import DiscourseRoute from "discourse/routes/discourse";
2023-02-09 03:21:39 +08:00
import FormTemplate from "admin/models/form-template";
2023-02-09 03:21:39 +08:00
export default class AdminCustomizeFormTemplatesIndex extends DiscourseRoute {
model() {
return FormTemplate.findAll();
}
setupController(controller, model) {
controller.set("model", model);
}
@action
reloadModel() {
this.refresh();
}
}