web/admin: fix flows not showing slug
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
70fc4c0d88
commit
54ad6b8dd9
|
@ -80,7 +80,7 @@ export class StageBindingForm extends Form<FlowStageBinding> {
|
|||
}).then(flows => {
|
||||
return flows.results.map(flow => {
|
||||
// No ?selected check here, as this input isnt shown on update forms
|
||||
return html`<option value=${ifDefined(flow.pk)}>${flow.name}</option>`;
|
||||
return html`<option value=${ifDefined(flow.pk)}>${flow.name} (${flow.slug})</option>`;
|
||||
});
|
||||
}), html``)}
|
||||
</select>
|
||||
|
|
|
@ -61,7 +61,7 @@ export class OAuth2ProviderFormPage extends Form<OAuth2Provider> {
|
|||
designation: FlowDesignationEnum.Authorization,
|
||||
}).then(flows => {
|
||||
return flows.results.map(flow => {
|
||||
return html`<option value=${ifDefined(flow.pk)} ?selected=${this.provider?.authorizationFlow === flow.pk}>${flow.name}</option>`;
|
||||
return html`<option value=${ifDefined(flow.pk)} ?selected=${this.provider?.authorizationFlow === flow.pk}>${flow.name} (${flow.slug})</option>`;
|
||||
});
|
||||
}))}
|
||||
</select>
|
||||
|
|
|
@ -61,7 +61,7 @@ export class ProxyProviderFormPage extends Form<ProxyProvider> {
|
|||
designation: FlowDesignationEnum.Authorization,
|
||||
}).then(flows => {
|
||||
return flows.results.map(flow => {
|
||||
return html`<option value=${ifDefined(flow.pk)} ?selected=${this.provider?.authorizationFlow === flow.pk}>${flow.name}</option>`;
|
||||
return html`<option value=${ifDefined(flow.pk)} ?selected=${this.provider?.authorizationFlow === flow.pk}>${flow.name} (${flow.slug})</option>`;
|
||||
});
|
||||
}))}
|
||||
</select>
|
||||
|
|
|
@ -61,7 +61,7 @@ export class SAMLProviderFormPage extends Form<SAMLProvider> {
|
|||
designation: FlowDesignationEnum.Authorization,
|
||||
}).then(flows => {
|
||||
return flows.results.map(flow => {
|
||||
return html`<option value=${ifDefined(flow.pk)} ?selected=${this.provider?.authorizationFlow === flow.pk}>${flow.name}</option>`;
|
||||
return html`<option value=${ifDefined(flow.pk)} ?selected=${this.provider?.authorizationFlow === flow.pk}>${flow.name} (${flow.slug})</option>`;
|
||||
});
|
||||
}))}
|
||||
</select>
|
||||
|
|
|
@ -46,7 +46,7 @@ export class SAMLProviderImportForm extends Form<SAMLProvider> {
|
|||
designation: FlowDesignationEnum.Authorization,
|
||||
}).then(flows => {
|
||||
return flows.results.map(flow => {
|
||||
return html`<option value=${ifDefined(flow.pk)}>${flow.name}</option>`;
|
||||
return html`<option value=${ifDefined(flow.pk)}>${flow.name} (${flow.slug})</option>`;
|
||||
});
|
||||
}))}
|
||||
</select>
|
||||
|
|
Reference in a new issue