1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-21 02:33:36 +00:00

ui changes export vault screen for key connector (#1651)

* ui changes export vault screen for key connector

* update label and remove period
This commit is contained in:
Jake Fink
2021-11-19 09:44:01 -05:00
committed by GitHub
parent 68c484b67f
commit 94994af4a9
4 changed files with 116 additions and 53 deletions

View File

@@ -7,6 +7,7 @@ using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Bit.Core.Enums;
using Bit.Core.Exceptions;
#if !FDROID
using Microsoft.AppCenter.Crashes;
#endif
@@ -195,7 +196,23 @@ namespace Bit.App.Pages
public async Task RequestOTP()
{
await _apiService.PostAccountRequestOTP();
try
{
await _deviceActionService.ShowLoadingAsync(AppResources.Sending);
await _apiService.PostAccountRequestOTP();
await _deviceActionService.HideLoadingAsync();
_platformUtilsService.ShowToast("success", null, AppResources.CodeSent);
}
catch (ApiException e)
{
await _deviceActionService.HideLoadingAsync();
if (e?.Error != null)
{
await _platformUtilsService.ShowDialogAsync(e.Error.GetSingleMessage(),
AppResources.AnErrorHasOccurred);
}
}
}
public async void SaveFileSelected(string contentUri, string filename)