Merge branch 'main' into test/passkey-tests

This commit is contained in:
Joakim Troëng 2024-02-09 15:10:08 +01:00
commit 813904e878

View File

@ -208,7 +208,15 @@ class _ResetDialogState extends ConsumerState<ResetDialog> {
.where((c) => supported & c.value != 0)
.map((c) => ButtonSegment(
value: c,
icon: Icon(c._icon),
icon: Icon(
c._icon,
key: switch (c) {
Capability.oath => factoryResetPickResetOath,
Capability.fido2 => factoryResetPickResetFido2,
Capability.piv => factoryResetPickResetPiv,
_ => const Key('_invalid') // no reset
},
),
label: showLabels
? Text(c.getDisplayName(l10n))
: null,