web/admin: fix inconsistent display of flows in selections (#4977)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		@ -1,3 +1,4 @@
 | 
			
		||||
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
 | 
			
		||||
import { UserMatchingModeToLabel } from "@goauthentik/admin/sources/oauth/utils";
 | 
			
		||||
import { DEFAULT_CONFIG, config } from "@goauthentik/common/api/config";
 | 
			
		||||
import { first } from "@goauthentik/common/utils";
 | 
			
		||||
@ -431,7 +432,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
 | 
			
		||||
                                return flows.results;
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderElement=${(flow: Flow): string => {
 | 
			
		||||
                                return flow.slug;
 | 
			
		||||
                                return RenderFlowOption(flow);
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderDescription=${(flow: Flow): TemplateResult => {
 | 
			
		||||
                                return html`${flow.name}`;
 | 
			
		||||
@ -477,7 +478,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
 | 
			
		||||
                                return flows.results;
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderElement=${(flow: Flow): string => {
 | 
			
		||||
                                return flow.slug;
 | 
			
		||||
                                return RenderFlowOption(flow);
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderDescription=${(flow: Flow): TemplateResult => {
 | 
			
		||||
                                return html`${flow.name}`;
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,4 @@
 | 
			
		||||
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
 | 
			
		||||
import { UserMatchingModeToLabel } from "@goauthentik/admin/sources/oauth/utils";
 | 
			
		||||
import { DEFAULT_CONFIG, config } from "@goauthentik/common/api/config";
 | 
			
		||||
import { PlexAPIClient, PlexResource, popupCenterScreen } from "@goauthentik/common/helpers/plex";
 | 
			
		||||
@ -364,7 +365,7 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
 | 
			
		||||
                                return flows.results;
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderElement=${(flow: Flow): string => {
 | 
			
		||||
                                return flow.slug;
 | 
			
		||||
                                return RenderFlowOption(flow);
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderDescription=${(flow: Flow): TemplateResult => {
 | 
			
		||||
                                return html`${flow.name}`;
 | 
			
		||||
@ -410,7 +411,7 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
 | 
			
		||||
                                return flows.results;
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderElement=${(flow: Flow): string => {
 | 
			
		||||
                                return flow.slug;
 | 
			
		||||
                                return RenderFlowOption(flow);
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderDescription=${(flow: Flow): TemplateResult => {
 | 
			
		||||
                                return html`${flow.name}`;
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,4 @@
 | 
			
		||||
import { RenderFlowOption } from "@goauthentik/admin/flows/utils";
 | 
			
		||||
import { UserMatchingModeToLabel } from "@goauthentik/admin/sources/oauth/utils";
 | 
			
		||||
import { DEFAULT_CONFIG, config } from "@goauthentik/common/api/config";
 | 
			
		||||
import { first } from "@goauthentik/common/utils";
 | 
			
		||||
@ -496,7 +497,7 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, string> {
 | 
			
		||||
                                return flows.results;
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderElement=${(flow: Flow): string => {
 | 
			
		||||
                                return flow.slug;
 | 
			
		||||
                                return RenderFlowOption(flow);
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderDescription=${(flow: Flow): TemplateResult => {
 | 
			
		||||
                                return html`${flow.name}`;
 | 
			
		||||
@ -540,7 +541,7 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, string> {
 | 
			
		||||
                                return flows.results;
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderElement=${(flow: Flow): string => {
 | 
			
		||||
                                return flow.slug;
 | 
			
		||||
                                return RenderFlowOption(flow);
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderDescription=${(flow: Flow): TemplateResult => {
 | 
			
		||||
                                return html`${flow.name}`;
 | 
			
		||||
@ -586,7 +587,7 @@ export class SAMLSourceForm extends ModelForm<SAMLSource, string> {
 | 
			
		||||
                                return flows.results;
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderElement=${(flow: Flow): string => {
 | 
			
		||||
                                return flow.slug;
 | 
			
		||||
                                return RenderFlowOption(flow);
 | 
			
		||||
                            }}
 | 
			
		||||
                            .renderDescription=${(flow: Flow): TemplateResult => {
 | 
			
		||||
                                return html`${flow.name}`;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user