From 2f86b5c7b0adedc614247def38cffee46582615b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 12 Jul 2017 23:45:05 -0400 Subject: [PATCH] show indicator when downloading attachment --- src/App/Pages/Vault/VaultViewLoginPage.cs | 2 ++ src/App/Resources/AppResources.Designer.cs | 9 +++++++++ src/App/Resources/AppResources.resx | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/src/App/Pages/Vault/VaultViewLoginPage.cs b/src/App/Pages/Vault/VaultViewLoginPage.cs index b4e513d07..bebbbbeb1 100644 --- a/src/App/Pages/Vault/VaultViewLoginPage.cs +++ b/src/App/Pages/Vault/VaultViewLoginPage.cs @@ -213,7 +213,9 @@ namespace Bit.App.Pages private async Task SaveAttachmentAsync(VaultViewLoginPageModel.Attachment attachment) { + _userDialogs.ShowLoading(AppResources.Downloading, MaskType.Black); var data = await _loginService.DownloadAndDecryptAttachmentAsync(null, attachment.Url); + _userDialogs.HideLoading(); if(data == null) { await _userDialogs.AlertAsync(AppResources.UnableToDownloadFile, null, AppResources.Ok); diff --git a/src/App/Resources/AppResources.Designer.cs b/src/App/Resources/AppResources.Designer.cs index 39e230a4d..8b42a6858 100644 --- a/src/App/Resources/AppResources.Designer.cs +++ b/src/App/Resources/AppResources.Designer.cs @@ -628,6 +628,15 @@ namespace Bit.App.Resources { } } + /// + /// Looks up a localized string similar to Downloading.... + /// + public static string Downloading { + get { + return ResourceManager.GetString("Downloading", resourceCulture); + } + } + /// /// Looks up a localized string similar to Do you really want to delete? This cannot be undone.. /// diff --git a/src/App/Resources/AppResources.resx b/src/App/Resources/AppResources.resx index 39f64722d..abcb882cd 100644 --- a/src/App/Resources/AppResources.resx +++ b/src/App/Resources/AppResources.resx @@ -914,4 +914,8 @@ Unable to open this type of file on your device. + + Downloading... + Message shown when downloading a file + \ No newline at end of file