Skip to content

Commit

Permalink
Fixing Certificate Dialog View (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: Christiano Bianchet <[email protected]>
  • Loading branch information
ChristBian1 and Christiano Bianchet authored May 14, 2020
1 parent b1fcb56 commit 394b79c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Vault/Explorer/PropertyObjectSecret.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public override void AddOrUpdateSecretKind(SecretKind sk)
TagItem oldTag = this.Tags.GetOrNull(newTag);

// Don't add the SecretKind to a secret that doesn't have any custom tags
if ((null == _customTags) || (_customTags.Count == 0)) return;
if (null == _customTags) return;

// Don't add the SecretKind to a secret that's defaulted to Custom
if (sk.Alias == "Custom" && !this.Tags.Contains(newTag)) return;
Expand Down
1 change: 1 addition & 0 deletions Vault/Explorer/SecretDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ private void RefreshCertificate(CertificateValueObject cvo)
_certificateObj = cvo;
if (_certificateObj != null)
{
uxTextBoxValue.ReadOnly = false;
_certificateObj.FillTagsAndExpiration(PropertyObject);
uxTextBoxValue.Text = _certificateObj.ToValue(PropertyObject.SecretKind.CertificateFormat);
uxTextBoxValue.Refresh();
Expand Down

0 comments on commit 394b79c

Please sign in to comment.