1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 18:43:43 +00:00

show/hide loading are async now

This commit is contained in:
Kyle Spearrin
2018-03-22 11:07:41 -04:00
parent 215ded8a77
commit b5747fbb44
17 changed files with 85 additions and 57 deletions

View File

@@ -85,9 +85,9 @@ namespace Bit.App.Pages
Name = NameCell.Entry.Text.Encrypt()
};
_deviceActionService.ShowLoading(AppResources.Saving);
await _deviceActionService.ShowLoadingAsync(AppResources.Saving);
var saveResult = await _folderService.SaveAsync(folder);
_deviceActionService.HideLoading();
await _deviceActionService.HideLoadingAsync();
if(saveResult.Succeeded)
{

View File

@@ -97,9 +97,9 @@ namespace Bit.App.Pages
folder.Name = NameCell.Entry.Text.Encrypt();
_deviceActionService.ShowLoading(AppResources.Saving);
await _deviceActionService.ShowLoadingAsync(AppResources.Saving);
var saveResult = await _folderService.SaveAsync(folder);
_deviceActionService.HideLoading();
await _deviceActionService.HideLoadingAsync();
if(saveResult.Succeeded)
{
@@ -161,9 +161,9 @@ namespace Bit.App.Pages
return;
}
_deviceActionService.ShowLoading(AppResources.Deleting);
await _deviceActionService.ShowLoadingAsync(AppResources.Deleting);
var deleteTask = await _folderService.DeleteAsync(_folderId);
_deviceActionService.HideLoading();
await _deviceActionService.HideLoadingAsync();
if(deleteTask.Succeeded)
{

View File

@@ -101,9 +101,9 @@ namespace Bit.App.Pages
return;
}
_deviceActionService.ShowLoading(AppResources.Syncing);
await _deviceActionService.ShowLoadingAsync(AppResources.Syncing);
var succeeded = await _syncService.FullSyncAsync(true);
_deviceActionService.HideLoading();
await _deviceActionService.HideLoadingAsync();
if(succeeded)
{
_deviceActionService.Toast(AppResources.SyncingComplete);