fix: is default (#1737)

This commit is contained in:
Max Peintner
2021-05-17 11:18:51 +02:00
committed by GitHub
parent 4a388e410a
commit fe2342f15c

View File

@@ -96,7 +96,7 @@ export class LoginPolicyComponent implements OnDestroy {
if (resp.policy) { if (resp.policy) {
this.loginData = resp.policy; this.loginData = resp.policy;
this.loading = false; this.loading = false;
this.disabled = ((this.loginData as LoginPolicy.AsObject)?.isDefault) ?? false; this.disabled = this.isDefault ?? false;
} }
}); });
this.getIdps().then(resp => { this.getIdps().then(resp => {