copy model password, not label text

This commit is contained in:
Kyle Spearrin 2018-12-12 08:21:15 -05:00
parent 8934cebc2a
commit 9d8a9387bc

View file

@ -203,7 +203,7 @@ namespace Bit.App.Pages
_googleAnalyticsService.TrackAppEvent("SelectedGeneratedPassword");
}
_passwordValueAction(Password.Text);
_passwordValueAction(Model.Password);
await Navigation.PopForDeviceAsync();
}, ToolbarItemOrder.Default, 0);
@ -302,7 +302,7 @@ namespace Bit.App.Pages
{
_googleAnalyticsService.TrackAppEvent("CopiedGeneratedPassword");
}
_deviceActionService.CopyToClipboard(Password.Text);
_deviceActionService.CopyToClipboard(Model.Password);
_deviceActionService.Toast(string.Format(AppResources.ValueHasBeenCopied, AppResources.Password));
}