web/admin: only show prompt creation when editing prompt stage (#5572)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
3704f4ccf4
commit
fd8c1d41db
|
@ -95,14 +95,20 @@ export class PromptStageForm extends ModelForm<PromptStage, string> {
|
||||||
<p class="pf-c-form__helper-text">
|
<p class="pf-c-form__helper-text">
|
||||||
${t`Hold control/command to select multiple items.`}
|
${t`Hold control/command to select multiple items.`}
|
||||||
</p>
|
</p>
|
||||||
<ak-forms-modal>
|
${this.instance
|
||||||
<span slot="submit"> ${t`Create`} </span>
|
? html`<ak-forms-modal>
|
||||||
<span slot="header"> ${t`Create Prompt`} </span>
|
<span slot="submit"> ${t`Create`} </span>
|
||||||
<ak-prompt-form slot="form"> </ak-prompt-form>
|
<span slot="header"> ${t`Create Prompt`} </span>
|
||||||
<button type="button" slot="trigger" class="pf-c-button pf-m-primary">
|
<ak-prompt-form slot="form"> </ak-prompt-form>
|
||||||
${t`Create`}
|
<button
|
||||||
</button>
|
type="button"
|
||||||
</ak-forms-modal>
|
slot="trigger"
|
||||||
|
class="pf-c-button pf-m-primary"
|
||||||
|
>
|
||||||
|
${t`Create`}
|
||||||
|
</button>
|
||||||
|
</ak-forms-modal>`
|
||||||
|
: html``}
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal
|
<ak-form-element-horizontal
|
||||||
label=${t`Validation Policies`}
|
label=${t`Validation Policies`}
|
||||||
|
|
Reference in New Issue