Skip to content

Commit

Permalink
Display comment on credential's title if present
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerard Chanekon authored and mulbc committed Mar 8, 2023
1 parent 130f6a2 commit 3d72bbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ function addCredentialsToList(credentials, credentialName, list) {
const titleContent = document.createElement('span');
titleContent.classList.add('list__item-text-title', 'link');
titleContent.textContent = credentials.title || credentialName;
if (credentials.comment && credentials.comment.length > 0) {
titleContent.title = credentials.comment;
}
primaryContent.appendChild(titleContent);

const detailContent = document.createElement('span');
Expand Down

0 comments on commit 3d72bbe

Please sign in to comment.