Skip to content

Commit

Permalink
show email on label
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Dec 10, 2024
1 parent b200bae commit 24665e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ qx.Class.define("osparc.filter.CollaboratorToggleButton", {
appearance: "tagbutton"
});

const label = collaborator.getLabel();
let label = collaborator.getLabel();
if ("getEmail" in collaborator && collaborator.getEmail()) {
label += ` (${collaborator.getEmail()})`;
}
this.setLabel(label);

if (collaborator.getDescription()) {
const ttt = label + "<br>" + collaborator.getDescription();
const ttt = collaborator.getLabel() + "<br>" + collaborator.getDescription();
this.setToolTipText(ttt);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ qx.Class.define("osparc.share.NewCollaboratorsManager", {
showMaximize: false,
autoDestroy: true,
modal: true,
width: 300,
width: 350,
maxHeight: 500,
clickAwayClose: true
});
Expand Down

0 comments on commit 24665e2

Please sign in to comment.