Skip to content

Commit f712dbb

Browse files
committed
show tooltip
1 parent 9ad6201 commit f712dbb

File tree

1 file changed

+10
-2
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+10
-2
lines changed

services/static-webserver/client/source/class/osparc/dashboard/CardBase.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,14 @@ qx.Class.define("osparc.dashboard.CardBase", {
235235
addHintFromGids: function(icon, gids) {
236236
const groupsStore = osparc.store.Groups.getInstance();
237237
const everyoneGroups = groupsStore.getEveryoneGroups();
238+
const supportGroup = groupsStore.getSupportGroup();
238239
const organizations = groupsStore.getOrganizations();
239240
const myGroupId = groupsStore.getMyGroupId();
240241

241242
const groups = everyoneGroups.slice();
243+
if (supportGroup) {
244+
groups.push(supportGroup);
245+
}
242246
groups.push(...Object.values(organizations));
243247
const sharedGrps = [];
244248
groups.forEach(group => {
@@ -275,10 +279,14 @@ qx.Class.define("osparc.dashboard.CardBase", {
275279
sharedGrpLabels.push("...");
276280
break;
277281
}
278-
let sharedGrpLabel = sharedGrps[i].getLabel();
279-
if (everyoneGroups.includes(sharedGrps[i])) {
282+
const sharedGroup = sharedGrps[i];
283+
let sharedGrpLabel = sharedGroup.getLabel();
284+
if (everyoneGroups.includes(sharedGroup)) {
280285
sharedGrpLabel = "Public";
281286
}
287+
if (supportGroup && [supportGroup.getGroupId()].includes(sharedGroup.getGroupId())) {
288+
sharedGrpLabel = supportGroup.getLabel();
289+
}
282290
if (!sharedGrpLabels.includes(sharedGrpLabel)) {
283291
sharedGrpLabels.push(sharedGrpLabel);
284292
}

0 commit comments

Comments
 (0)