From 8042d9f27672013a1b1210564a4cb5e78097a29f Mon Sep 17 00:00:00 2001 From: Ken Sternberg Date: Thu, 3 Aug 2023 13:39:58 -0700 Subject: [PATCH] web: Converted our toggle groups to a more streamlined implementation. --- .../stories/ak-application-wizard.stories.ts | 3 - web/src/admin/policies/PolicyBindingForm.ts | 55 ++------- .../providers/proxy/ProxyProviderForm.ts | 110 +++++------------- web/src/components/ak-toggle-group.ts | 72 ++++++++++++ 4 files changed, 115 insertions(+), 125 deletions(-) create mode 100644 web/src/components/ak-toggle-group.ts diff --git a/web/src/admin/applications/wizard/stories/ak-application-wizard.stories.ts b/web/src/admin/applications/wizard/stories/ak-application-wizard.stories.ts index aab881b46..e1f5e71ae 100644 --- a/web/src/admin/applications/wizard/stories/ak-application-wizard.stories.ts +++ b/web/src/admin/applications/wizard/stories/ak-application-wizard.stories.ts @@ -72,8 +72,6 @@ const metadata: Meta = { status: 200, response: dummyHasJwks, }, - - ], }, }; @@ -134,7 +132,6 @@ export const PageThreeLdap = () => { ); }; - export const PageThreeOauth2 = () => { return container( html` diff --git a/web/src/admin/policies/PolicyBindingForm.ts b/web/src/admin/policies/PolicyBindingForm.ts index af98d8781..e7db91957 100644 --- a/web/src/admin/policies/PolicyBindingForm.ts +++ b/web/src/admin/policies/PolicyBindingForm.ts @@ -112,55 +112,22 @@ export class PolicyBindingForm extends ModelForm { } renderModeSelector(): TemplateResult { - return html`
- -
- -
- -
- -
- -
`; + return html` ) => { + this.policyGroupUser = ev.detail.value; + }} + > + + + + `; } renderForm(): TemplateResult { return html`
-
-
${this.renderModeSelector()}
-
+
${this.renderModeSelector()}