Skip to content

Commit 4a00345

Browse files
authored
🐛 [Frontend] Fixes: delete(d) Workspaces (#7484)
1 parent bff03eb commit 4a00345

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,9 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
612612
card.addListener("tap", e => this.__studyCardClicked(card, e.getNativeEvent().shiftKey), this);
613613
this._populateCardMenu(card);
614614

615-
this.__attachDragHandlers(card);
615+
if (this.getCurrentContext() !== "trash") {
616+
this.__attachDragHandlers(card);
617+
}
616618
});
617619
},
618620

services/static-webserver/client/source/class/osparc/desktop/credits/CreditsImage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ qx.Class.define("osparc.desktop.credits.CreditsImage", {
2121
construct: function() {
2222
this.base(arguments, "osparc/coins-solid.svg");
2323

24+
osparc.utils.Utils.setAltToImage(this.getChildControl("image"), "credits-left");
25+
2426
const store = osparc.store.Store.getInstance();
2527
store.addListener("changeContextWallet", this.__updateWallet, this);
2628
this.__updateWallet();

services/static-webserver/client/source/class/osparc/store/Workspaces.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ qx.Class.define("osparc.store.Workspaces", {
9696
.then(trashedWorkspacesData => {
9797
const workspaces = [];
9898
trashedWorkspacesData.forEach(workspaceData => {
99-
const workspace = this.__addToCache(workspaceData);
99+
const workspace = new osparc.data.model.Workspace(workspaceData);
100100
workspaces.push(workspace);
101101
});
102102
return workspaces;
@@ -127,7 +127,7 @@ qx.Class.define("osparc.store.Workspaces", {
127127
.then(workspacesData => {
128128
const workspaces = [];
129129
workspacesData.forEach(workspaceData => {
130-
const workspace = this.__addToCache(workspaceData);
130+
const workspace = new osparc.data.model.Workspace(workspaceData);
131131
workspaces.push(workspace);
132132
});
133133
return workspaces;

services/static-webserver/client/source/class/osparc/ui/basic/PoweredByOsparc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
************************************************************************ */
1717

1818
/**
19-
* App/Theme dependant osparc logo with powerwed by text
19+
* App/Theme dependant osparc logo with powered by text
2020
*/
2121
qx.Class.define("osparc.ui.basic.PoweredByOsparc", {
2222
extend: qx.ui.core.Widget,
@@ -32,7 +32,7 @@ qx.Class.define("osparc.ui.basic.PoweredByOsparc", {
3232
toolTipText: this.tr("powered by ") + osparc.About.OSPARC_OFFICIAL,
3333
alignX: "center",
3434
alignY: "middle",
35-
cursor: "pointer"
35+
cursor: "pointer",
3636
});
3737

3838
this.addListener("tap", () => osparc.About.getInstance().open());
@@ -87,6 +87,7 @@ qx.Class.define("osparc.ui.basic.PoweredByOsparc", {
8787
this.getChildControl("logo").set({
8888
source: lightLogo ? "osparc/osparc-o-white.svg" : "osparc/osparc-o-black.svg"
8989
});
90+
osparc.utils.Utils.setAltToImage(this.getChildControl("logo"), "powered-by-osparc");
9091
}
9192
}
9293
});

0 commit comments

Comments
 (0)