web: fix outpost item in sidebar being active on service connection views

This commit is contained in:
Jens Langhammer 2021-02-07 18:21:13 +01:00
parent 6869b3c16a
commit bf9826873e
2 changed files with 5 additions and 5 deletions

View File

@ -333,22 +333,22 @@ urlpatterns = [
), ),
# Outpost Service Connections # Outpost Service Connections
path( path(
"outposts/service_connections/", "outpost_service_connections/",
outposts_service_connections.OutpostServiceConnectionListView.as_view(), outposts_service_connections.OutpostServiceConnectionListView.as_view(),
name="outpost-service-connections", name="outpost-service-connections",
), ),
path( path(
"outposts/service_connections/create/", "outpost_service_connections/create/",
outposts_service_connections.OutpostServiceConnectionCreateView.as_view(), outposts_service_connections.OutpostServiceConnectionCreateView.as_view(),
name="outpost-service-connection-create", name="outpost-service-connection-create",
), ),
path( path(
"outposts/service_connections/<uuid:pk>/update/", "outpost_service_connections/<uuid:pk>/update/",
outposts_service_connections.OutpostServiceConnectionUpdateView.as_view(), outposts_service_connections.OutpostServiceConnectionUpdateView.as_view(),
name="outpost-service-connection-update", name="outpost-service-connection-update",
), ),
path( path(
"outposts/service_connections/<uuid:pk>/delete/", "outpost_service_connections/<uuid:pk>/delete/",
outposts_service_connections.OutpostServiceConnectionDeleteView.as_view(), outposts_service_connections.OutpostServiceConnectionDeleteView.as_view(),
name="outpost-service-connection-delete", name="outpost-service-connection-delete",
), ),

View File

@ -28,7 +28,7 @@ export const SIDEBAR_ITEMS: SidebarItem[] = [
), ),
new SidebarItem("Providers", "/providers"), new SidebarItem("Providers", "/providers"),
new SidebarItem("Outposts", "/administration/outposts/"), new SidebarItem("Outposts", "/administration/outposts/"),
new SidebarItem("Outpost Service Connections", "/administration/outposts/service_connections/"), new SidebarItem("Outpost Service Connections", "/administration/outpost_service_connections/"),
).when((): Promise<boolean> => { ).when((): Promise<boolean> => {
return User.me().then(u => u.is_superuser); return User.me().then(u => u.is_superuser);
}), }),