diff --git a/src/App/Pages/Vault/ViewPage.xaml b/src/App/Pages/Vault/ViewPage.xaml
index 5faed3932..21e7818ac 100644
--- a/src/App/Pages/Vault/ViewPage.xaml
+++ b/src/App/Pages/Vault/ViewPage.xaml
@@ -19,10 +19,11 @@
-
+
+
@@ -42,10 +43,9 @@
StyleClass="box-value" />
-
-
+
+
@@ -73,8 +73,10 @@
Grid.Column="1"
Grid.RowSpan="2" />
-
-
+
+
@@ -125,7 +127,8 @@
Grid.Column="3"
Grid.RowSpan="2" />
-
+
@@ -167,11 +170,233 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -234,7 +459,8 @@
-
+
diff --git a/src/App/Pages/Vault/ViewPageViewModel.cs b/src/App/Pages/Vault/ViewPageViewModel.cs
index b8f3de561..4ea87688a 100644
--- a/src/App/Pages/Vault/ViewPageViewModel.cs
+++ b/src/App/Pages/Vault/ViewPageViewModel.cs
@@ -69,11 +69,9 @@ namespace Bit.App.Pages
nameof(IsSecureNote),
nameof(ShowUris),
nameof(ShowFields),
- nameof(ShowNotes),
nameof(ShowTotp),
- nameof(ShowUsername),
nameof(ColoredPassword),
- nameof(ShowPasswordBox)
+ nameof(ShowIdentityAddress),
});
}
public List Fields
@@ -108,11 +106,12 @@ namespace Bit.App.Pages
public bool IsIdentity => _cipher?.Type == Core.Enums.CipherType.Identity;
public bool IsCard => _cipher?.Type == Core.Enums.CipherType.Card;
public bool IsSecureNote => _cipher?.Type == Core.Enums.CipherType.SecureNote;
- public bool ShowUsername => IsLogin && !string.IsNullOrWhiteSpace(_cipher.Login.Username);
public FormattedString ColoredPassword => PasswordFormatter.FormatPassword(_cipher.Login.Password);
- public bool ShowPasswordBox => IsLogin && !string.IsNullOrWhiteSpace(_cipher.Login.Password);
public bool ShowUris => IsLogin && _cipher.Login.HasUris;
- public bool ShowNotes => !string.IsNullOrWhiteSpace(_cipher.Notes);
+ public bool ShowIdentityAddress => IsIdentity && (
+ !string.IsNullOrWhiteSpace(_cipher.Identity.Address1) ||
+ !string.IsNullOrWhiteSpace(_cipher.Identity.City) ||
+ !string.IsNullOrWhiteSpace(_cipher.Identity.Country));
public bool ShowFields => _cipher.HasFields;
public bool ShowTotp => IsLogin && !string.IsNullOrWhiteSpace(_cipher.Login.Totp) &&
!string.IsNullOrWhiteSpace(TotpCodeFormatted);
@@ -266,6 +265,16 @@ namespace Bit.App.Pages
{
name = AppResources.URI;
}
+ else if(id == "CardNumber")
+ {
+ text = Cipher.Card.Number;
+ name = AppResources.Number;
+ }
+ else if(id == "CardCode")
+ {
+ text = Cipher.Card.Code;
+ name = AppResources.SecurityCode;
+ }
if(text != null)
{
diff --git a/src/App/Resources/AppResources.Designer.cs b/src/App/Resources/AppResources.Designer.cs
index cd418dd92..2d29d9c4a 100644
--- a/src/App/Resources/AppResources.Designer.cs
+++ b/src/App/Resources/AppResources.Designer.cs
@@ -1779,6 +1779,15 @@ namespace Bit.App.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Identity Name.
+ ///
+ internal static string IdentityName {
+ get {
+ return ResourceManager.GetString("IdentityName", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Identity Server URL.
///
diff --git a/src/App/Resources/AppResources.resx b/src/App/Resources/AppResources.resx
index de07ce1d0..bcbefcfcf 100644
--- a/src/App/Resources/AppResources.resx
+++ b/src/App/Resources/AppResources.resx
@@ -1381,4 +1381,7 @@
This password was not found in any known data breaches. It should be safe to use.
+
+ Identity Name
+
\ No newline at end of file
diff --git a/src/Core/Models/View/IdentityView.cs b/src/Core/Models/View/IdentityView.cs
index 06bd85e86..3d346537d 100644
--- a/src/Core/Models/View/IdentityView.cs
+++ b/src/Core/Models/View/IdentityView.cs
@@ -125,5 +125,21 @@ namespace Bit.Core.Models.View
return address;
}
}
+
+ public string FullAddressPart2
+ {
+ get
+ {
+ if(string.IsNullOrWhiteSpace(City) && string.IsNullOrWhiteSpace(State) &&
+ string.IsNullOrWhiteSpace(PostalCode))
+ {
+ return null;
+ }
+ var city = string.IsNullOrWhiteSpace(City) ? "-" : City;
+ var state = string.IsNullOrWhiteSpace(State) ? "-" : State;
+ var postalCode = string.IsNullOrWhiteSpace(PostalCode) ? "-" : PostalCode;
+ return string.Format("{0}, {1}, {2}", city, state, postalCode);
+ }
+ }
}
}