From 1b496dd47250ba9bf964e9e5bb11753afe106f32 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 29 Mar 2021 12:02:54 +0200 Subject: [PATCH] web/admin: use new group form for create Signed-off-by: Jens Langhammer --- web/src/api/legacy.ts | 3 --- web/src/pages/groups/GroupListPage.ts | 18 ++++++++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/web/src/api/legacy.ts b/web/src/api/legacy.ts index 76808ada8..7e8504907 100644 --- a/web/src/api/legacy.ts +++ b/web/src/api/legacy.ts @@ -72,9 +72,6 @@ export class AdminURLManager { return `/administration/users/${rest}`; } - static groups(rest: string): string { - return `/administration/groups/${rest}`; - } } export class UserURLManager { diff --git a/web/src/pages/groups/GroupListPage.ts b/web/src/pages/groups/GroupListPage.ts index c5183ba8e..d505e11a3 100644 --- a/web/src/pages/groups/GroupListPage.ts +++ b/web/src/pages/groups/GroupListPage.ts @@ -10,7 +10,6 @@ import { TableColumn } from "../../elements/table/Table"; import { PAGE_SIZE } from "../../constants"; import { CoreApi, Group } from "authentik-api"; import { DEFAULT_CONFIG } from "../../api/Config"; -import { AdminURLManager } from "../../api/legacy"; import "../../elements/forms/ModalForm"; import "./GroupForm"; @@ -88,12 +87,19 @@ export class GroupListPage extends TablePage { renderToolbar(): TemplateResult { return html` - - + + ${gettext("Create")} - -
-
+ + + ${gettext("Create Group")} + + + + + ${super.renderToolbar()} `; }