mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 15:53:44 +00:00
pop page on delete success
This commit is contained in:
@@ -145,7 +145,10 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
if(DoOnce())
|
if(DoOnce())
|
||||||
{
|
{
|
||||||
await _vm.DeleteAsync();
|
if(await _vm.DeleteAsync())
|
||||||
|
{
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ namespace Bit.App.Pages
|
|||||||
public async Task<bool> DeleteAsync()
|
public async Task<bool> DeleteAsync()
|
||||||
{
|
{
|
||||||
var confirmed = await _platformUtilsService.ShowDialogAsync(AppResources.DoYouReallyWantToDelete,
|
var confirmed = await _platformUtilsService.ShowDialogAsync(AppResources.DoYouReallyWantToDelete,
|
||||||
null, AppResources.Yes, AppResources.No);
|
null, AppResources.Yes, AppResources.Cancel);
|
||||||
if(!confirmed)
|
if(!confirmed)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@@ -436,7 +436,6 @@ namespace Bit.App.Pages
|
|||||||
await _deviceActionService.HideLoadingAsync();
|
await _deviceActionService.HideLoadingAsync();
|
||||||
_platformUtilsService.ShowToast("success", null, AppResources.ItemDeleted);
|
_platformUtilsService.ShowToast("success", null, AppResources.ItemDeleted);
|
||||||
_messagingService.Send("deletedCipher");
|
_messagingService.Send("deletedCipher");
|
||||||
await Page.Navigation.PopModalAsync();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch(ApiException e)
|
catch(ApiException e)
|
||||||
|
|||||||
@@ -127,7 +127,10 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
if(DoOnce())
|
if(DoOnce())
|
||||||
{
|
{
|
||||||
await _vm.DeleteAsync();
|
if(await _vm.DeleteAsync())
|
||||||
|
{
|
||||||
|
await Navigation.PopModalAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ namespace Bit.App.Pages
|
|||||||
public async Task<bool> DeleteAsync()
|
public async Task<bool> DeleteAsync()
|
||||||
{
|
{
|
||||||
var confirmed = await _platformUtilsService.ShowDialogAsync(AppResources.DoYouReallyWantToDelete,
|
var confirmed = await _platformUtilsService.ShowDialogAsync(AppResources.DoYouReallyWantToDelete,
|
||||||
null, AppResources.Yes, AppResources.No);
|
null, AppResources.Yes, AppResources.Cancel);
|
||||||
if(!confirmed)
|
if(!confirmed)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user