Skip to content

Commit 9cc4798

Browse files
committed
trying to say "Public"
1 parent 95fad53 commit 9cc4798

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ qx.Class.define("osparc.dashboard.FolderButtonItem", {
230230
}
231231
},
232232

233-
__applyTitle: function(value) {
233+
// overridden
234+
_applyTitle: function(value) {
234235
const label = this.getChildControl("title");
235236
label.set({
236237
value,

services/static-webserver/client/source/class/osparc/ui/list/CollaboratorListItem.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,19 @@ qx.Class.define("osparc.ui.list.CollaboratorListItem", {
113113
return control || this.base(arguments, id);
114114
},
115115

116+
// overridden
117+
_applyTitle: function(value) {
118+
if (value === null) {
119+
return;
120+
}
121+
const label = this.getChildControl("title");
122+
if (this.isPropertyInitialized("collabType") && this.getCollabType() === 0) {
123+
label.setValue(this.tr("Public"));
124+
} else {
125+
label.setValue(value);
126+
}
127+
},
128+
116129
// overridden
117130
_applyThumbnail: function(value) {
118131
if (value === null) {

services/static-webserver/client/source/class/osparc/ui/list/ListItem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ qx.Class.define("osparc.ui.list.ListItem", {
9090

9191
title: {
9292
check : "String",
93-
apply : "__applyTitle",
93+
apply : "_applyTitle",
9494
nullable : true
9595
},
9696

@@ -228,7 +228,7 @@ qx.Class.define("osparc.ui.list.ListItem", {
228228
thumbnail.setSource(value);
229229
},
230230

231-
__applyTitle: function(value) {
231+
_applyTitle: function(value) {
232232
if (value === null) {
233233
return;
234234
}

0 commit comments

Comments
 (0)