mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 18:15:25 +08:00
18 lines
417 B
JavaScript
18 lines
417 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
import { action } from "@ember/object";
|
|
import FormTemplate from "admin/models/form-template";
|
|
export default class AdminCustomizeFormTemplatesIndex extends DiscourseRoute {
|
|
model() {
|
|
return FormTemplate.findAll();
|
|
}
|
|
|
|
setupController(controller, model) {
|
|
controller.set("model", model);
|
|
}
|
|
|
|
@action
|
|
reloadModel() {
|
|
this.refresh();
|
|
}
|
|
}
|