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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user