From f1cec03dcfb3b16900810d1b76add0f6a65e0c5b Mon Sep 17 00:00:00 2001 From: Jens L Date: Fri, 21 Apr 2023 21:31:23 +0300 Subject: [PATCH] web/admin: remove grouping (#5343) Signed-off-by: Jens Langhammer --- web/src/admin/flows/FlowListPage.ts | 3 --- web/src/admin/policies/PolicyListPage.ts | 5 ----- web/src/admin/property-mappings/PropertyMappingListPage.ts | 5 ----- web/src/admin/stages/StageListPage.ts | 5 ----- 4 files changed, 18 deletions(-) diff --git a/web/src/admin/flows/FlowListPage.ts b/web/src/admin/flows/FlowListPage.ts index 6a2022ed5..88e8c9e02 100644 --- a/web/src/admin/flows/FlowListPage.ts +++ b/web/src/admin/flows/FlowListPage.ts @@ -50,9 +50,6 @@ export class FlowListPage extends TablePage { groupBy(items: Flow[]): [string, Flow[]][] { return groupBy(items, (flow) => { - if (!flow.designation) { - return ""; - } return DesignationToLabel(flow.designation); }); } diff --git a/web/src/admin/policies/PolicyListPage.ts b/web/src/admin/policies/PolicyListPage.ts index 88296efab..4f6c20f3c 100644 --- a/web/src/admin/policies/PolicyListPage.ts +++ b/web/src/admin/policies/PolicyListPage.ts @@ -8,7 +8,6 @@ import "@goauthentik/admin/policies/password/PasswordPolicyForm"; import "@goauthentik/admin/policies/reputation/ReputationPolicyForm"; import { DEFAULT_CONFIG } from "@goauthentik/common/api/config"; import { uiConfig } from "@goauthentik/common/ui/config"; -import { groupBy } from "@goauthentik/common/utils"; import { PFColor } from "@goauthentik/elements/Label"; import "@goauthentik/elements/forms/ConfirmationForm"; import "@goauthentik/elements/forms/DeleteBulkForm"; @@ -63,10 +62,6 @@ export class PolicyListPage extends TablePage { ]; } - groupBy(items: Policy[]): [string, Policy[]][] { - return groupBy(items, (policy) => policy.verboseNamePlural); - } - row(item: Policy): TemplateResult[] { return [ html`
${item.name}
diff --git a/web/src/admin/property-mappings/PropertyMappingListPage.ts b/web/src/admin/property-mappings/PropertyMappingListPage.ts index 1c4c5d384..bf99bbb5f 100644 --- a/web/src/admin/property-mappings/PropertyMappingListPage.ts +++ b/web/src/admin/property-mappings/PropertyMappingListPage.ts @@ -7,7 +7,6 @@ import "@goauthentik/admin/property-mappings/PropertyMappingTestForm"; import "@goauthentik/admin/property-mappings/PropertyMappingWizard"; import { DEFAULT_CONFIG } from "@goauthentik/common/api/config"; import { uiConfig } from "@goauthentik/common/ui/config"; -import { groupBy } from "@goauthentik/common/utils"; import "@goauthentik/elements/forms/DeleteBulkForm"; import "@goauthentik/elements/forms/ModalForm"; import "@goauthentik/elements/forms/ProxyForm"; @@ -57,10 +56,6 @@ export class PropertyMappingListPage extends TablePage { }); } - groupBy(items: PropertyMapping[]): [string, PropertyMapping[]][] { - return groupBy(items, (mapping) => mapping.verboseNamePlural); - } - columns(): TableColumn[] { return [ new TableColumn(t`Name`, "name"), diff --git a/web/src/admin/stages/StageListPage.ts b/web/src/admin/stages/StageListPage.ts index 92aa94ea2..09985349e 100644 --- a/web/src/admin/stages/StageListPage.ts +++ b/web/src/admin/stages/StageListPage.ts @@ -21,7 +21,6 @@ import "@goauthentik/admin/stages/user_logout/UserLogoutStageForm"; import "@goauthentik/admin/stages/user_write/UserWriteStageForm"; import { DEFAULT_CONFIG } from "@goauthentik/common/api/config"; import { uiConfig } from "@goauthentik/common/ui/config"; -import { groupBy } from "@goauthentik/common/utils"; import "@goauthentik/elements/forms/DeleteBulkForm"; import "@goauthentik/elements/forms/ModalForm"; import "@goauthentik/elements/forms/ProxyForm"; @@ -66,10 +65,6 @@ export class StageListPage extends TablePage { }); } - groupBy(items: Stage[]): [string, Stage[]][] { - return groupBy(items, (stage) => stage.verboseNamePlural); - } - columns(): TableColumn[] { return [ new TableColumn(t`Name`, "name"),