Files
Krzysztof KotlarekandGitHub f92bd4d255 UX: Hide admin header for edit/new webhook (#30194)
In this PR, we added functionality to hide the admin header for edit/new actions - https://github.com/discourse/discourse/pull/30175

To make it work properly, we have to rename `show` to `edit` which is also a more accurate name.
2024-12-12 10:49:17 +11:00

15 lines
290 B
JavaScript

export default {
resource: "admin.adminPlugins.show",
path: "/plugins",
map() {
this.route(
"discourse-chat-incoming-webhooks",
{ path: "hooks" },
function () {
this.route("new");
this.route("edit", { path: "/:id/edit" });
}
);
},
};