mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 18:22:39 +03:00
Merge PR #1375
This commit is contained in:
commit
9b2297b27d
@ -77,13 +77,14 @@ class AccountDialog extends ConsumerWidget {
|
||||
return renamed;
|
||||
}),
|
||||
if (hasFeature(features.accountsDelete))
|
||||
DeleteIntent: CallbackAction<DeleteIntent>(onInvoke: (intent) async {
|
||||
DeleteIntent<OathCredential>:
|
||||
CallbackAction<DeleteIntent<OathCredential>>(
|
||||
onInvoke: (intent) async {
|
||||
final deleted =
|
||||
await (Actions.invoke(context, intent) as Future<dynamic>?);
|
||||
// Pop the account dialog if deleted
|
||||
final withContext = ref.read(withContextProvider);
|
||||
if (deleted == true) {
|
||||
await withContext((context) async {
|
||||
await ref.read(withContextProvider)((context) async {
|
||||
Navigator.of(context).pop();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user