web/admin: fix flows not showing slug

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-02 12:48:09 +02:00
parent 70fc4c0d88
commit 54ad6b8dd9
5 changed files with 5 additions and 5 deletions

View File

@ -80,7 +80,7 @@ export class StageBindingForm extends Form<FlowStageBinding> {
}).then(flows => { }).then(flows => {
return flows.results.map(flow => { return flows.results.map(flow => {
// No ?selected check here, as this input isnt shown on update forms // 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``)} }), html``)}
</select> </select>

View File

@ -61,7 +61,7 @@ export class OAuth2ProviderFormPage extends Form<OAuth2Provider> {
designation: FlowDesignationEnum.Authorization, designation: FlowDesignationEnum.Authorization,
}).then(flows => { }).then(flows => {
return flows.results.map(flow => { 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> </select>

View File

@ -61,7 +61,7 @@ export class ProxyProviderFormPage extends Form<ProxyProvider> {
designation: FlowDesignationEnum.Authorization, designation: FlowDesignationEnum.Authorization,
}).then(flows => { }).then(flows => {
return flows.results.map(flow => { 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> </select>

View File

@ -61,7 +61,7 @@ export class SAMLProviderFormPage extends Form<SAMLProvider> {
designation: FlowDesignationEnum.Authorization, designation: FlowDesignationEnum.Authorization,
}).then(flows => { }).then(flows => {
return flows.results.map(flow => { 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> </select>

View File

@ -46,7 +46,7 @@ export class SAMLProviderImportForm extends Form<SAMLProvider> {
designation: FlowDesignationEnum.Authorization, designation: FlowDesignationEnum.Authorization,
}).then(flows => { }).then(flows => {
return flows.results.map(flow => { 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> </select>