web/admin: use flow slug as main name for flow dropdown

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-12-29 22:53:15 +01:00
parent c46b2d5573
commit 6a44695c48
17 changed files with 56 additions and 57 deletions

View File

@ -417,10 +417,10 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
return flows.results;
}}
.renderElement=${(flow: Flow): string => {
return flow.name;
return flow.slug;
}}
.renderDescription=${(flow: Flow): TemplateResult => {
return html`${flow.slug}`;
return html`${flow.name}`;
}}
.value=${(flow: Flow | undefined): string | undefined => {
return flow?.pk;
@ -463,10 +463,10 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
return flows.results;
}}
.renderElement=${(flow: Flow): string => {
return flow.name;
return flow.slug;
}}
.renderDescription=${(flow: Flow): TemplateResult => {
return html`${flow.slug}`;
return html`${flow.name}`;
}}
.value=${(flow: Flow | undefined): string | undefined => {
return flow?.pk;