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