From 73b310d59eae2a9cad7994e1646a8bffa5d1fe03 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 3 Nov 2017 16:58:04 -0400 Subject: [PATCH] fixes for extension add login --- src/iOS.Extension/LoginAddViewController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iOS.Extension/LoginAddViewController.cs b/src/iOS.Extension/LoginAddViewController.cs index dc5e27734..a1de5e76e 100644 --- a/src/iOS.Extension/LoginAddViewController.cs +++ b/src/iOS.Extension/LoginAddViewController.cs @@ -157,6 +157,7 @@ namespace Bit.iOS.Extension Notes = string.IsNullOrWhiteSpace(NotesCell.TextView.Text) ? null : NotesCell.TextView.Text.Encrypt(), Favorite = FavoriteCell.Switch.On, FolderId = FolderCell.SelectedIndex == 0 ? null : _folders.ElementAtOrDefault(FolderCell.SelectedIndex - 1)?.Id, + Type = App.Enums.CipherType.Login, Login = new Login { Uri = string.IsNullOrWhiteSpace(UriCell.TextField.Text) ? null : UriCell.TextField.Text.Encrypt(), @@ -170,6 +171,7 @@ namespace Bit.iOS.Extension PresentViewController(loadingAlert, true, null); await saveTask; + await loadingAlert.DismissViewControllerAsync(true); if(saveTask.Result.Succeeded) { _googleAnalyticsService.TrackExtensionEvent("CreatedLogin");