Show FIDO EA status in all relevant states

This commit is contained in:
Elias Bonnici 2024-08-21 13:26:26 +02:00
parent 2e48131c9b
commit 0a8649291b
No known key found for this signature in database
GPG Key ID: 5EAC28EA3F980CCF

View File

@ -52,12 +52,11 @@ Widget _fidoBuildActions(BuildContext context, DeviceNode node, FidoState state,
final authBlocked = state.pinBlocked;
final enterpriseAttestation = state.enterpriseAttestation;
final showEnterpriseAttestation = enterpriseAttestation != null &&
final showEnterpriseAttestation =
enterpriseAttestation != null && fingerprints == null;
final canEnableEnterpriseAttestation = enterpriseAttestation == false &&
!(state.alwaysUv && !state.hasPin) &&
!(!state.unlocked && state.hasPin) &&
fingerprints == null;
final canEnableEnterpriseAttestation =
enterpriseAttestation == false && showEnterpriseAttestation;
!(!state.unlocked && state.hasPin);
return Column(
children: [