Skip to content

Commit 86be17c

Browse files
committed
no shot show file uuid in tree
1 parent 6862a22 commit 86be17c

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

services/static-webserver/client/source/class/osparc/file/FileTreeItem.js

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ qx.Class.define("osparc.file.FileTreeItem", {
7979
itemId: {
8080
check: "String",
8181
event: "changeItemId",
82-
apply: "_applyItemId",
82+
apply: "__applyItemId",
8383
nullable: true
8484
},
8585

@@ -144,7 +144,6 @@ qx.Class.define("osparc.file.FileTreeItem", {
144144

145145
// Add lastModified
146146
const lastModifiedWidget = new qx.ui.basic.Label().set({
147-
width: 140,
148147
maxWidth: 140,
149148
textAlign: "right"
150149
});
@@ -162,7 +161,6 @@ qx.Class.define("osparc.file.FileTreeItem", {
162161

163162
// Add size
164163
const sizeWidget = new qx.ui.basic.Label().set({
165-
width: 70,
166164
maxWidth: 70,
167165
textAlign: "right"
168166
});
@@ -175,39 +173,13 @@ qx.Class.define("osparc.file.FileTreeItem", {
175173
}
176174
});
177175
this.addWidget(sizeWidget);
178-
179-
180-
const permissions = osparc.data.Permissions.getInstance();
181-
// Add Path
182-
const pathWidget = new qx.ui.basic.Label().set({
183-
width: 300,
184-
maxWidth: 300,
185-
textAlign: "right"
186-
});
187-
this.bind("path", pathWidget, "value");
188-
this.addWidget(pathWidget);
189-
permissions.bind("role", pathWidget, "visibility", {
190-
converter: () => permissions.canDo("study.nodestree.uuid.read") ? "visible" : "excluded"
191-
});
192-
193-
// Add NodeId
194-
const fileIdWidget = new qx.ui.basic.Label().set({
195-
width: 300,
196-
maxWidth: 300,
197-
textAlign: "right"
198-
});
199-
this.bind("fileId", fileIdWidget, "value");
200-
this.addWidget(fileIdWidget);
201-
permissions.bind("role", fileIdWidget, "visibility", {
202-
converter: () => permissions.canDo("study.nodestree.uuid.read") ? "visible" : "excluded"
203-
});
204176
},
205177

206-
// override
207-
_applyItemId: function(value, old) {
178+
__applyItemId: function(value, old) {
208179
osparc.utils.Utils.setIdToWidget(this, "fileTreeItem_" + value);
209180
},
210181

182+
// override
211183
_applyIcon: function(value, old) {
212184
this.base(arguments, value, old);
213185
const icon = this.getChildControl("icon", true);

0 commit comments

Comments
 (0)