Skip to content

Commit 63fdfdb

Browse files
committed
highlight folder icon
1 parent 2b775c8 commit 63fdfdb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,19 @@ qx.Class.define("osparc.dashboard.FolderButtonItem", {
233233
}
234234
}
235235
}
236-
if (!compatible) {
236+
if (compatible) {
237+
this.getChildControl("icon").setTextColor("strong-main");
238+
} else {
237239
// do not allow
240+
this.getChildControl("icon").setTextColor("danger-red");
238241
e.preventDefault();
239242
}
240243
});
241244

245+
this.addListener("dragleave", () => {
246+
this.getChildControl("icon").resetTextColor();
247+
});
248+
242249
this.addListener("drop", e => {
243250
if (e.supportsType("osparc-moveStudy")) {
244251
const studyData = e.getData("osparc-moveStudy")["studyDataOrigin"];

0 commit comments

Comments
 (0)