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:
		@ -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;
 | 
			
		||||
 | 
			
		||||
@ -346,10 +346,10 @@ export class PlexSourceForm extends ModelForm<PlexSource, 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;
 | 
			
		||||
@ -392,10 +392,10 @@ export class PlexSourceForm extends ModelForm<PlexSource, 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;
 | 
			
		||||
 | 
			
		||||
@ -496,10 +496,10 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, 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;
 | 
			
		||||
@ -540,10 +540,10 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, 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;
 | 
			
		||||
@ -586,10 +586,10 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, 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;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user