Fix delete an identity, screen jump back to dashboard
This commit is contained in:
@@ -299,7 +299,6 @@ class IdentitiesController extends ReloadableController implements BeforeReconne
|
|||||||
outsideDialogPadding: EdgeInsets.only(bottom: PlatformInfo.isWeb ? 42 : 16),
|
outsideDialogPadding: EdgeInsets.only(bottom: PlatformInfo.isWeb ? 42 : 16),
|
||||||
title: appLocalizations.delete_identity,
|
title: appLocalizations.delete_identity,
|
||||||
cancelTitle: appLocalizations.cancel,
|
cancelTitle: appLocalizations.cancel,
|
||||||
onCancelAction: popBack,
|
|
||||||
onCloseButtonAction: popBack,
|
onCloseButtonAction: popBack,
|
||||||
onConfirmAction: () => _dereferencePublicAssets(identity),
|
onConfirmAction: () => _dereferencePublicAssets(identity),
|
||||||
);
|
);
|
||||||
@@ -318,8 +317,6 @@ class IdentitiesController extends ReloadableController implements BeforeReconne
|
|||||||
Future<void> _dereferencePublicAssets(
|
Future<void> _dereferencePublicAssets(
|
||||||
Identity identity
|
Identity identity
|
||||||
) async {
|
) async {
|
||||||
popBack();
|
|
||||||
|
|
||||||
final session = accountDashBoardController.sessionCurrent;
|
final session = accountDashBoardController.sessionCurrent;
|
||||||
final accountId = accountDashBoardController.accountId.value;
|
final accountId = accountDashBoardController.accountId.value;
|
||||||
final identityId = identity.id;
|
final identityId = identity.id;
|
||||||
|
|||||||
Reference in New Issue
Block a user