mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 21:06:38 +08:00

This change updates the Automation plugin to make use of the `use_new_show_route` plugin flag, as well as generally updating the UI to match current admin UI guidelines. Notable changes include: - Moving template/router/controller files to make use of the `admin.adminPlugins.show` route. - Changing the URIs from `/admin/plugins/discourse-automation` to `/admin/plugins/automation`, to match the `PLUGIN_NAME`. - Adding UI wrappers around the New/Edit forms, and polishing the list of defined automations.
17 lines
241 B
JavaScript
17 lines
241 B
JavaScript
export default {
|
|
resource: "admin.adminPlugins.show",
|
|
|
|
path: "/plugins",
|
|
|
|
map() {
|
|
this.route(
|
|
"automation",
|
|
|
|
function () {
|
|
this.route("new");
|
|
this.route("edit", { path: "/:id" });
|
|
}
|
|
);
|
|
},
|
|
};
|