mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
pop page on delete success
This commit is contained in:
parent
3f8f29dfe7
commit
46a8ffa5ae
4 changed files with 10 additions and 5 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue