web/admin: fix plex source authorization flow not being shown correctly
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
446dc0a17b
commit
767ffc09d0
|
@ -373,10 +373,10 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
|
||||||
return flow?.pk;
|
return flow?.pk;
|
||||||
}}
|
}}
|
||||||
.selected=${(flow: Flow): boolean => {
|
.selected=${(flow: Flow): boolean => {
|
||||||
let selected = this.instance?.enrollmentFlow === flow.pk;
|
let selected = this.instance?.authenticationFlow === flow.pk;
|
||||||
if (
|
if (
|
||||||
!this.instance?.pk &&
|
!this.instance?.pk &&
|
||||||
!this.instance?.enrollmentFlow &&
|
!this.instance?.authenticationFlow &&
|
||||||
flow.slug === "default-source-authentication"
|
flow.slug === "default-source-authentication"
|
||||||
) {
|
) {
|
||||||
selected = true;
|
selected = true;
|
||||||
|
|
Reference in a new issue