From 8d2aecd68775eee8acf2b0fdb78b233300242fd2 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 3 Apr 2021 14:32:19 +0200 Subject: [PATCH] web/admin: remove left-over ak-modal-buttons Signed-off-by: Jens Langhammer --- .../pages/applications/ApplicationViewPage.ts | 3 +-- web/src/pages/flows/BoundStagesList.ts | 19 ++++++++++++++----- web/src/pages/flows/FlowListPage.ts | 1 - web/src/pages/flows/FlowViewPage.ts | 1 - web/src/pages/groups/GroupListPage.ts | 1 - .../outposts/ServiceConnectionListPage.ts | 1 - web/src/pages/policies/BoundPoliciesList.ts | 18 ++++++++++++++---- .../PropertyMappingListPage.ts | 1 - web/src/pages/providers/ProviderViewPage.ts | 1 - .../providers/RelatedApplicationButton.ts | 1 - web/src/pages/sources/SourceViewPage.ts | 1 - .../pages/system-tasks/SystemTaskListPage.ts | 1 - web/src/pages/tokens/TokenListPage.ts | 1 - 13 files changed, 29 insertions(+), 21 deletions(-) diff --git a/web/src/pages/applications/ApplicationViewPage.ts b/web/src/pages/applications/ApplicationViewPage.ts index 766cb2ebb..e47965df4 100644 --- a/web/src/pages/applications/ApplicationViewPage.ts +++ b/web/src/pages/applications/ApplicationViewPage.ts @@ -3,11 +3,10 @@ import { css, CSSResult, customElement, html, LitElement, property, TemplateResu import "../../elements/Tabs"; import "../../elements/charts/ApplicationAuthorizeChart"; -import "../../elements/buttons/ModalButton"; import "../../elements/buttons/SpinnerButton"; -import "../policies/BoundPoliciesList"; import "../../elements/EmptyState"; import "../../elements/events/ObjectChangelog"; +import "../policies/BoundPoliciesList"; import { Application, CoreApi } from "authentik-api"; import { DEFAULT_CONFIG } from "../../api/Config"; import PFPage from "@patternfly/patternfly/components/Page/page.css"; diff --git a/web/src/pages/flows/BoundStagesList.ts b/web/src/pages/flows/BoundStagesList.ts index 991046f46..5e9692e16 100644 --- a/web/src/pages/flows/BoundStagesList.ts +++ b/web/src/pages/flows/BoundStagesList.ts @@ -8,7 +8,6 @@ import "../../elements/forms/ModalForm"; import "../../elements/forms/ProxyForm"; import "./StageBindingForm"; import "../../elements/Tabs"; -import "../../elements/buttons/ModalButton"; import "../../elements/buttons/SpinnerButton"; import "../../elements/buttons/Dropdown"; import "../policies/BoundPoliciesList"; @@ -145,12 +144,22 @@ export class BoundStagesList extends Table { ${until(new StagesApi(DEFAULT_CONFIG).stagesAllTypes().then((types) => { return types.map((type) => { return html`
  • - - -
    -
    +
  • `; }); }), html``)} diff --git a/web/src/pages/flows/FlowListPage.ts b/web/src/pages/flows/FlowListPage.ts index fdb6e45d5..473efd5c9 100644 --- a/web/src/pages/flows/FlowListPage.ts +++ b/web/src/pages/flows/FlowListPage.ts @@ -3,7 +3,6 @@ import { customElement, html, property, TemplateResult } from "lit-element"; import { AKResponse } from "../../api/Client"; import { TablePage } from "../../elements/table/TablePage"; -import "../../elements/buttons/ModalButton"; import "../../elements/buttons/SpinnerButton"; import "../../elements/forms/DeleteForm"; import "../../elements/forms/ModalForm"; diff --git a/web/src/pages/flows/FlowViewPage.ts b/web/src/pages/flows/FlowViewPage.ts index fa44c9d09..34f09dcae 100644 --- a/web/src/pages/flows/FlowViewPage.ts +++ b/web/src/pages/flows/FlowViewPage.ts @@ -3,7 +3,6 @@ import { css, CSSResult, customElement, html, LitElement, property, TemplateResu import "../../elements/Tabs"; import "../../elements/events/ObjectChangelog"; -import "../../elements/buttons/ModalButton"; import "../../elements/buttons/SpinnerButton"; import "../policies/BoundPoliciesList"; import "./BoundStagesList"; diff --git a/web/src/pages/groups/GroupListPage.ts b/web/src/pages/groups/GroupListPage.ts index 294750a69..173afcfd7 100644 --- a/web/src/pages/groups/GroupListPage.ts +++ b/web/src/pages/groups/GroupListPage.ts @@ -4,7 +4,6 @@ import { AKResponse } from "../../api/Client"; import { TablePage } from "../../elements/table/TablePage"; import "../../elements/forms/DeleteForm"; -import "../../elements/buttons/ModalButton"; import "../../elements/buttons/SpinnerButton"; import { TableColumn } from "../../elements/table/Table"; import { PAGE_SIZE } from "../../constants"; diff --git a/web/src/pages/outposts/ServiceConnectionListPage.ts b/web/src/pages/outposts/ServiceConnectionListPage.ts index 937638c48..a3afcbc73 100644 --- a/web/src/pages/outposts/ServiceConnectionListPage.ts +++ b/web/src/pages/outposts/ServiceConnectionListPage.ts @@ -7,7 +7,6 @@ import { TablePage } from "../../elements/table/TablePage"; import "./OutpostHealth"; import "../../elements/buttons/SpinnerButton"; -import "../../elements/buttons/ModalButton"; import "../../elements/buttons/Dropdown"; import "../../elements/forms/DeleteForm"; import "../../elements/forms/ModalForm"; diff --git a/web/src/pages/policies/BoundPoliciesList.ts b/web/src/pages/policies/BoundPoliciesList.ts index d32122292..0a52ae9d4 100644 --- a/web/src/pages/policies/BoundPoliciesList.ts +++ b/web/src/pages/policies/BoundPoliciesList.ts @@ -179,12 +179,22 @@ export class BoundPoliciesList extends Table { ${until(new PoliciesApi(DEFAULT_CONFIG).policiesAllTypes().then((types) => { return types.map((type) => { return html`
  • - - -
    -
    +
  • `; }); }), html``)} diff --git a/web/src/pages/property-mappings/PropertyMappingListPage.ts b/web/src/pages/property-mappings/PropertyMappingListPage.ts index 0465f2f68..fbf10fb20 100644 --- a/web/src/pages/property-mappings/PropertyMappingListPage.ts +++ b/web/src/pages/property-mappings/PropertyMappingListPage.ts @@ -3,7 +3,6 @@ import { customElement, html, property, TemplateResult } from "lit-element"; import { AKResponse } from "../../api/Client"; import { TablePage } from "../../elements/table/TablePage"; -import "../../elements/buttons/ModalButton"; import "../../elements/buttons/Dropdown"; import "../../elements/buttons/SpinnerButton"; import "../../elements/forms/DeleteForm"; diff --git a/web/src/pages/providers/ProviderViewPage.ts b/web/src/pages/providers/ProviderViewPage.ts index 3fac630a0..f033dd5cf 100644 --- a/web/src/pages/providers/ProviderViewPage.ts +++ b/web/src/pages/providers/ProviderViewPage.ts @@ -1,6 +1,5 @@ import { css, CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; -import "../../elements/buttons/ModalButton"; import "../../elements/buttons/SpinnerButton"; import "../../elements/EmptyState"; diff --git a/web/src/pages/providers/RelatedApplicationButton.ts b/web/src/pages/providers/RelatedApplicationButton.ts index 17733380d..6417f5de2 100644 --- a/web/src/pages/providers/RelatedApplicationButton.ts +++ b/web/src/pages/providers/RelatedApplicationButton.ts @@ -4,7 +4,6 @@ import { Provider } from "authentik-api"; import PFBase from "@patternfly/patternfly/patternfly-base.css"; import PFButton from "@patternfly/patternfly/components/Button/button.css"; -import "../../elements/buttons/ModalButton"; import "../../elements/Spinner"; import "../../elements/forms/ModalForm"; import "../../pages/applications/ApplicationForm"; diff --git a/web/src/pages/sources/SourceViewPage.ts b/web/src/pages/sources/SourceViewPage.ts index 098f917bb..b9d32df1b 100644 --- a/web/src/pages/sources/SourceViewPage.ts +++ b/web/src/pages/sources/SourceViewPage.ts @@ -2,7 +2,6 @@ import { css, CSSResult, customElement, html, LitElement, property, TemplateResu import { Source, SourcesApi } from "authentik-api"; import { DEFAULT_CONFIG } from "../../api/Config"; -import "../../elements/buttons/ModalButton"; import "../../elements/buttons/SpinnerButton"; import "../../elements/EmptyState"; diff --git a/web/src/pages/system-tasks/SystemTaskListPage.ts b/web/src/pages/system-tasks/SystemTaskListPage.ts index 815a51015..64d60f0fa 100644 --- a/web/src/pages/system-tasks/SystemTaskListPage.ts +++ b/web/src/pages/system-tasks/SystemTaskListPage.ts @@ -3,7 +3,6 @@ import { customElement, html, property, TemplateResult } from "lit-element"; import { AKResponse } from "../../api/Client"; import { TablePage } from "../../elements/table/TablePage"; -import "../../elements/buttons/ModalButton"; import "../../elements/buttons/SpinnerButton"; import "../../elements/buttons/ActionButton"; import { TableColumn } from "../../elements/table/Table"; diff --git a/web/src/pages/tokens/TokenListPage.ts b/web/src/pages/tokens/TokenListPage.ts index 4d00a2a0a..4df40798d 100644 --- a/web/src/pages/tokens/TokenListPage.ts +++ b/web/src/pages/tokens/TokenListPage.ts @@ -3,7 +3,6 @@ import { customElement, html, property, TemplateResult } from "lit-element"; import { AKResponse } from "../../api/Client"; import { TablePage } from "../../elements/table/TablePage"; -import "../../elements/buttons/ModalButton"; import "../../elements/buttons/Dropdown"; import "../../elements/buttons/TokenCopyButton"; import "../../elements/forms/DeleteForm";