1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-23 11:45:38 +01:00

show indicator when downloading attachment

This commit is contained in:
Kyle Spearrin 2017-07-12 23:45:05 -04:00
parent 0d672c4f99
commit 2f86b5c7b0
3 changed files with 15 additions and 0 deletions

View File

@ -213,7 +213,9 @@ namespace Bit.App.Pages
private async Task SaveAttachmentAsync(VaultViewLoginPageModel.Attachment attachment) private async Task SaveAttachmentAsync(VaultViewLoginPageModel.Attachment attachment)
{ {
_userDialogs.ShowLoading(AppResources.Downloading, MaskType.Black);
var data = await _loginService.DownloadAndDecryptAttachmentAsync(null, attachment.Url); var data = await _loginService.DownloadAndDecryptAttachmentAsync(null, attachment.Url);
_userDialogs.HideLoading();
if(data == null) if(data == null)
{ {
await _userDialogs.AlertAsync(AppResources.UnableToDownloadFile, null, AppResources.Ok); await _userDialogs.AlertAsync(AppResources.UnableToDownloadFile, null, AppResources.Ok);

View File

@ -628,6 +628,15 @@ namespace Bit.App.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Downloading....
/// </summary>
public static string Downloading {
get {
return ResourceManager.GetString("Downloading", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Do you really want to delete? This cannot be undone.. /// Looks up a localized string similar to Do you really want to delete? This cannot be undone..
/// </summary> /// </summary>

View File

@ -914,4 +914,8 @@
<data name="UnableToOpenFile" xml:space="preserve"> <data name="UnableToOpenFile" xml:space="preserve">
<value>Unable to open this type of file on your device.</value> <value>Unable to open this type of file on your device.</value>
</data> </data>
<data name="Downloading" xml:space="preserve">
<value>Downloading...</value>
<comment>Message shown when downloading a file</comment>
</data>
</root> </root>