web/admin: fix wizard type selection
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
db07f564aa
commit
2f57d7f427
|
@ -44,7 +44,7 @@ export class InitialServiceConnectionWizardPage extends WizardPage {
|
|||
"initial",
|
||||
`type-${type.component}-${type.modelName}`,
|
||||
];
|
||||
this._isValid = true;
|
||||
this.host.isValid = true;
|
||||
}}
|
||||
/>
|
||||
<label class="pf-c-radio__label" for=${`${type.component}-${type.modelName}`}
|
||||
|
|
|
@ -49,7 +49,7 @@ export class InitialPolicyWizardPage extends WizardPage {
|
|||
"initial",
|
||||
`type-${type.component}-${type.modelName}`,
|
||||
];
|
||||
this._isValid = true;
|
||||
this.host.isValid = true;
|
||||
}}
|
||||
/>
|
||||
<label class="pf-c-radio__label" for=${`${type.component}-${type.modelName}`}
|
||||
|
|
|
@ -47,7 +47,7 @@ export class InitialPropertyMappingWizardPage extends WizardPage {
|
|||
"initial",
|
||||
`type-${type.component}-${type.modelName}`,
|
||||
];
|
||||
this._isValid = true;
|
||||
this.host.isValid = true;
|
||||
}}
|
||||
/>
|
||||
<label class="pf-c-radio__label" for=${`${type.component}-${type.modelName}`}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||
import "@goauthentik/web/elements/forms/ProxyForm";
|
||||
import { paramURL } from "@goauthentik/web/elements/router/RouterOutlet";
|
||||
import "@goauthentik/web/elements/wizard/FormWizardPage";
|
||||
import "@goauthentik/web/elements/wizard/Wizard";
|
||||
import { WizardPage } from "@goauthentik/web/elements/wizard/WizardPage";
|
||||
|
@ -34,7 +35,7 @@ export class InitialProviderWizardPage extends WizardPage {
|
|||
}
|
||||
sidebarLabel = () => t`Select type`;
|
||||
|
||||
render(): TemplateResult {
|
||||
renderHint(): TemplateResult {
|
||||
return html`<div class="pf-c-hint">
|
||||
<div class="pf-c-hint__title">${t`Try the new application wizard`}</div>
|
||||
<div class="pf-c-hint__body">
|
||||
|
@ -50,8 +51,11 @@ export class InitialProviderWizardPage extends WizardPage {
|
|||
>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<form class="pf-c-form pf-m-horizontal">
|
||||
<br />`;
|
||||
}
|
||||
|
||||
render(): TemplateResult {
|
||||
return html` <form class="pf-c-form pf-m-horizontal">
|
||||
${this.providerTypes.map((type) => {
|
||||
return html`<div class="pf-c-radio">
|
||||
<input
|
||||
|
@ -61,7 +65,7 @@ export class InitialProviderWizardPage extends WizardPage {
|
|||
id=${type.component}
|
||||
@change=${() => {
|
||||
this.host.steps = ["initial", `type-${type.component}`];
|
||||
this._isValid = true;
|
||||
this.host.isValid = true;
|
||||
}}
|
||||
/>
|
||||
<label class="pf-c-radio__label" for=${type.component}>${type.name}</label>
|
||||
|
|
|
@ -46,7 +46,7 @@ export class InitialSourceWizardPage extends WizardPage {
|
|||
"initial",
|
||||
`type-${type.component}-${type.modelName}`,
|
||||
];
|
||||
this._isValid = true;
|
||||
this.host.isValid = true;
|
||||
}}
|
||||
/>
|
||||
<label class="pf-c-radio__label" for=${`${type.component}-${type.modelName}`}
|
||||
|
|
|
@ -62,7 +62,7 @@ export class InitialStageWizardPage extends WizardPage {
|
|||
"initial",
|
||||
`type-${type.component}-${type.modelName}`,
|
||||
];
|
||||
this._isValid = true;
|
||||
this.host.isValid = true;
|
||||
}}
|
||||
/>
|
||||
<label class="pf-c-radio__label" for=${`${type.component}-${type.modelName}`}
|
||||
|
|
Reference in New Issue