From 43bab840ecb682c76a7a958ce24ae39ca087ecff Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 8 Feb 2021 19:08:39 +0100 Subject: [PATCH] web: fix sidebar being active when stage prompts is selected --- authentik/admin/urls.py | 8 ++++---- web/src/interfaces/AdminInterface.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/authentik/admin/urls.py b/authentik/admin/urls.py index 0974fd370..fb116ccc8 100644 --- a/authentik/admin/urls.py +++ b/authentik/admin/urls.py @@ -169,22 +169,22 @@ urlpatterns = [ ), # Stage Prompts path( - "stages/prompts/", + "stages_prompts/", stages_prompts.PromptListView.as_view(), name="stage-prompts", ), path( - "stages/prompts/create/", + "stages_prompts/create/", stages_prompts.PromptCreateView.as_view(), name="stage-prompt-create", ), path( - "stages/prompts//update/", + "stages_prompts//update/", stages_prompts.PromptUpdateView.as_view(), name="stage-prompt-update", ), path( - "stages/prompts//delete/", + "stages_prompts//delete/", stages_prompts.PromptDeleteView.as_view(), name="stage-prompt-delete", ), diff --git a/web/src/interfaces/AdminInterface.ts b/web/src/interfaces/AdminInterface.ts index 00c437176..f38154d62 100644 --- a/web/src/interfaces/AdminInterface.ts +++ b/web/src/interfaces/AdminInterface.ts @@ -41,7 +41,7 @@ export const SIDEBAR_ITEMS: SidebarItem[] = [ new SidebarItem("Flows").children( new SidebarItem("Flows", "/administration/flows/").activeWhen(`^/flows/(?${SLUG_REGEX})$`), new SidebarItem("Stages", "/administration/stages/"), - new SidebarItem("Prompts", "/administration/stages/prompts/"), + new SidebarItem("Prompts", "/administration/stages_prompts/"), new SidebarItem("Invitations", "/administration/stages/invitations/"), ).when((): Promise => { return User.me().then(u => u.is_superuser);