mirror of
https://github.com/discourse/discourse.git
synced 2024-12-22 08:53:45 +08:00
cbfd596b1b
and call super instead of manually setting model
15 lines
338 B
JavaScript
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();
|
|
}
|
|
}
|