From 9499fa0fb3faf7d22aeb69e0d5aefbbab3ec8dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Bispo?= Date: Thu, 7 Jul 2022 15:27:44 +0100 Subject: [PATCH] [SSG-416] Updated ViewPageViewModel and code refactoring. --- src/App/Pages/Vault/ViewPageViewModel.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/App/Pages/Vault/ViewPageViewModel.cs b/src/App/Pages/Vault/ViewPageViewModel.cs index 4a443fc1b..938d60232 100644 --- a/src/App/Pages/Vault/ViewPageViewModel.cs +++ b/src/App/Pages/Vault/ViewPageViewModel.cs @@ -206,22 +206,20 @@ namespace Bit.App.Pages public string UpgradeToPremiumTotpText => AppResources.PremiumSubscriptionRequired; public bool ShowUpgradePremiumTotpText => !CanAccessPremium && ShowTotp; - public bool ShowUris => IsLogin && Cipher.Login.HasUris; public bool ShowIdentityAddress => IsIdentity && ( !string.IsNullOrWhiteSpace(Cipher.Identity.Address1) || !string.IsNullOrWhiteSpace(Cipher.Identity.City) || !string.IsNullOrWhiteSpace(Cipher.Identity.Country)); public bool ShowAttachments => Cipher.HasAttachments && (CanAccessPremium || Cipher.OrganizationId != null); - public bool ShowTotp => IsLogin && !string.IsNullOrWhiteSpace(Cipher.Login.Totp) && - !string.IsNullOrWhiteSpace(TotpCodeFormatted); + public bool ShowTotp => IsLogin && !string.IsNullOrWhiteSpace(Cipher.Login.Totp); public string ShowPasswordIcon => ShowPassword ? BitwardenIcons.EyeSlash : BitwardenIcons.Eye; public string ShowCardNumberIcon => ShowCardNumber ? BitwardenIcons.EyeSlash : BitwardenIcons.Eye; public string ShowCardCodeIcon => ShowCardCode ? BitwardenIcons.EyeSlash : BitwardenIcons.Eye; public string PasswordVisibilityAccessibilityText => ShowPassword ? AppResources.PasswordIsVisibleTapToHide : AppResources.PasswordIsNotVisibleTapToShow; public string TotpCodeFormatted { - get => _canAccessPremium ? _totpCodeFormatted : "--- ---"; + get => _canAccessPremium ? _totpCodeFormatted : string.Empty; set => SetProperty(ref _totpCodeFormatted, value, additionalPropertyNames: new string[] {