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

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

18 lines
379 B
JavaScript
Raw Normal View History

2023-02-09 03:21:39 +08:00
import Controller from "@ember/controller";
import { action } from "@ember/object";
import { service } from "@ember/service";
2023-02-09 03:21:39 +08:00
export default class AdminCustomizeFormTemplatesIndex extends Controller {
@service router;
2023-02-09 03:21:39 +08:00
@action
newTemplate() {
this.router.transitionTo("adminCustomizeFormTemplates.new");
2023-02-09 03:21:39 +08:00
}
@action
reload() {
this.send("reloadModel");
}
}