File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments