web/admin: remove grouping (#5343)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
574ed72b95
commit
f1cec03dcf
|
@ -50,9 +50,6 @@ export class FlowListPage extends TablePage<Flow> {
|
||||||
|
|
||||||
groupBy(items: Flow[]): [string, Flow[]][] {
|
groupBy(items: Flow[]): [string, Flow[]][] {
|
||||||
return groupBy(items, (flow) => {
|
return groupBy(items, (flow) => {
|
||||||
if (!flow.designation) {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
return DesignationToLabel(flow.designation);
|
return DesignationToLabel(flow.designation);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,6 @@ import "@goauthentik/admin/policies/password/PasswordPolicyForm";
|
||||||
import "@goauthentik/admin/policies/reputation/ReputationPolicyForm";
|
import "@goauthentik/admin/policies/reputation/ReputationPolicyForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { uiConfig } from "@goauthentik/common/ui/config";
|
import { uiConfig } from "@goauthentik/common/ui/config";
|
||||||
import { groupBy } from "@goauthentik/common/utils";
|
|
||||||
import { PFColor } from "@goauthentik/elements/Label";
|
import { PFColor } from "@goauthentik/elements/Label";
|
||||||
import "@goauthentik/elements/forms/ConfirmationForm";
|
import "@goauthentik/elements/forms/ConfirmationForm";
|
||||||
import "@goauthentik/elements/forms/DeleteBulkForm";
|
import "@goauthentik/elements/forms/DeleteBulkForm";
|
||||||
|
@ -63,10 +62,6 @@ export class PolicyListPage extends TablePage<Policy> {
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
groupBy(items: Policy[]): [string, Policy[]][] {
|
|
||||||
return groupBy(items, (policy) => policy.verboseNamePlural);
|
|
||||||
}
|
|
||||||
|
|
||||||
row(item: Policy): TemplateResult[] {
|
row(item: Policy): TemplateResult[] {
|
||||||
return [
|
return [
|
||||||
html`<div>${item.name}</div>
|
html`<div>${item.name}</div>
|
||||||
|
|
|
@ -7,7 +7,6 @@ import "@goauthentik/admin/property-mappings/PropertyMappingTestForm";
|
||||||
import "@goauthentik/admin/property-mappings/PropertyMappingWizard";
|
import "@goauthentik/admin/property-mappings/PropertyMappingWizard";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { uiConfig } from "@goauthentik/common/ui/config";
|
import { uiConfig } from "@goauthentik/common/ui/config";
|
||||||
import { groupBy } from "@goauthentik/common/utils";
|
|
||||||
import "@goauthentik/elements/forms/DeleteBulkForm";
|
import "@goauthentik/elements/forms/DeleteBulkForm";
|
||||||
import "@goauthentik/elements/forms/ModalForm";
|
import "@goauthentik/elements/forms/ModalForm";
|
||||||
import "@goauthentik/elements/forms/ProxyForm";
|
import "@goauthentik/elements/forms/ProxyForm";
|
||||||
|
@ -57,10 +56,6 @@ export class PropertyMappingListPage extends TablePage<PropertyMapping> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
groupBy(items: PropertyMapping[]): [string, PropertyMapping[]][] {
|
|
||||||
return groupBy(items, (mapping) => mapping.verboseNamePlural);
|
|
||||||
}
|
|
||||||
|
|
||||||
columns(): TableColumn[] {
|
columns(): TableColumn[] {
|
||||||
return [
|
return [
|
||||||
new TableColumn(t`Name`, "name"),
|
new TableColumn(t`Name`, "name"),
|
||||||
|
|
|
@ -21,7 +21,6 @@ import "@goauthentik/admin/stages/user_logout/UserLogoutStageForm";
|
||||||
import "@goauthentik/admin/stages/user_write/UserWriteStageForm";
|
import "@goauthentik/admin/stages/user_write/UserWriteStageForm";
|
||||||
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
||||||
import { uiConfig } from "@goauthentik/common/ui/config";
|
import { uiConfig } from "@goauthentik/common/ui/config";
|
||||||
import { groupBy } from "@goauthentik/common/utils";
|
|
||||||
import "@goauthentik/elements/forms/DeleteBulkForm";
|
import "@goauthentik/elements/forms/DeleteBulkForm";
|
||||||
import "@goauthentik/elements/forms/ModalForm";
|
import "@goauthentik/elements/forms/ModalForm";
|
||||||
import "@goauthentik/elements/forms/ProxyForm";
|
import "@goauthentik/elements/forms/ProxyForm";
|
||||||
|
@ -66,10 +65,6 @@ export class StageListPage extends TablePage<Stage> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
groupBy(items: Stage[]): [string, Stage[]][] {
|
|
||||||
return groupBy(items, (stage) => stage.verboseNamePlural);
|
|
||||||
}
|
|
||||||
|
|
||||||
columns(): TableColumn[] {
|
columns(): TableColumn[] {
|
||||||
return [
|
return [
|
||||||
new TableColumn(t`Name`, "name"),
|
new TableColumn(t`Name`, "name"),
|
||||||
|
|
Reference in a new issue