mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
DEV: Refactor the Automation Plugin UI to match admin UI guidelines (#31060)
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.
This commit is contained in:
@ -87,7 +87,7 @@ after_initialize do
|
||||
Plugin::Instance.prepend DiscourseAutomation::PluginInstanceExtension
|
||||
end
|
||||
|
||||
add_admin_route "discourse_automation.title", "discourse-automation"
|
||||
add_admin_route "discourse_automation.title", "automation", use_new_show_route: true
|
||||
|
||||
add_api_key_scope(
|
||||
:automations_trigger,
|
||||
|
Reference in New Issue
Block a user