From 4d692e7eeb044a7e42a842f705003d6a3b0d8ab0 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 15 Jul 2016 01:28:12 -0400 Subject: [PATCH] set password on add page when generation is selected. --- src/iOS.Extension/MainInterface.storyboard | 8 ++++---- src/iOS.Extension/PasswordGeneratorViewController.cs | 7 +++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/iOS.Extension/MainInterface.storyboard b/src/iOS.Extension/MainInterface.storyboard index e736ccaf7..a62d74855 100644 --- a/src/iOS.Extension/MainInterface.storyboard +++ b/src/iOS.Extension/MainInterface.storyboard @@ -40,7 +40,7 @@ @@ -57,7 +57,7 @@ - + @@ -78,7 +78,7 @@ - + @@ -200,7 +200,7 @@ - + diff --git a/src/iOS.Extension/PasswordGeneratorViewController.cs b/src/iOS.Extension/PasswordGeneratorViewController.cs index 995c4417d..f9a21f720 100644 --- a/src/iOS.Extension/PasswordGeneratorViewController.cs +++ b/src/iOS.Extension/PasswordGeneratorViewController.cs @@ -157,12 +157,15 @@ namespace Bit.iOS.Extension partial void SelectBarButton_Activated(UIBarButtonItem sender) { - throw new NotImplementedException(); + DismissViewController(true, () => + { + Parent.PasswordCell.TextField.Text = PasswordLabel.Text; + }); } partial void CancelBarButton_Activated(UIBarButtonItem sender) { - throw new NotImplementedException(); + DismissViewController(true, null); } private void GeneratePassword()