We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae48944 commit 483a62fCopy full SHA for 483a62f
services/static-webserver/client/source/class/osparc/file/FolderContent.js
@@ -67,13 +67,21 @@ qx.Class.define("osparc.file.FolderContent", {
67
height: 80,
68
padding: 2
69
});
70
- item.getChildControl("label").set({
+ const toggleLabel = item.getChildControl("label");
71
+ toggleLabel.set({
72
font: "text-12",
73
rich: true,
74
textAlign: "center",
75
maxWidth: 100,
76
maxHeight: 33 // two lines
77
78
+ toggleLabel.addListener("changeValue", e => {
79
+ const val = e.getData();
80
+ const sanitized = osparc.wrapper.DOMPurify.sanitize(val);
81
+ if (sanitized !== val) {
82
+ toggleLabel.setValue(sanitized);
83
+ }
84
+ });
85
osparc.utils.Utils.setIdToWidget(item, "FolderViewerItem");
86
return item;
87
},
0 commit comments