Skip to content

Commit 200792f

Browse files
committed
public
1 parent cd11d50 commit 200792f

File tree

1 file changed

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

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,14 @@ qx.Class.define("osparc.dashboard.CardBase", {
220220
const groupProductEveryone = groupsStore.getEveryoneProductGroup();
221221
const organizations = groupsStore.getOrganizations();
222222
const myGroupId = groupsStore.getMyGroupId();
223+
const everyoneGid = groupEveryone.getGroupId();
224+
const productEveryoneGid = groupProductEveryone.getGroupId();
223225

224-
const sharedGrps = [];
225226
const groups = [];
226227
groups.push(groupEveryone);
227228
groups.push(groupProductEveryone);
228229
groups.push(...Object.values(organizations));
230+
const sharedGrps = [];
229231
groups.forEach(group => {
230232
const idx = gids.indexOf(group.getGroupId());
231233
if (idx > -1) {
@@ -260,7 +262,10 @@ qx.Class.define("osparc.dashboard.CardBase", {
260262
sharedGrpLabels.push("...");
261263
break;
262264
}
263-
const sharedGrpLabel = sharedGrps[i].getLabel();
265+
let sharedGrpLabel = sharedGrps[i].getLabel();
266+
if ([everyoneGid, productEveryoneGid].includes(sharedGrps[i].getGroupId())) {
267+
sharedGrpLabel = "Public";
268+
}
264269
if (!sharedGrpLabels.includes(sharedGrpLabel)) {
265270
sharedGrpLabels.push(sharedGrpLabel);
266271
}

0 commit comments

Comments
 (0)