mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 16:32:01 +03:00
adds missing keys to ButtonSegments
This commit is contained in:
parent
e35ff52a24
commit
a685743c74
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user