Skip to content

Commit 1c829d7

Browse files
authored
🐛 [Frontend] Fix: Extract path :size (#7441)
1 parent 45a8b63 commit 1c829d7

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

services/static-webserver/client/source/class/osparc/desktop/account/MyAccountWindow.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ qx.Class.define("osparc.desktop.account.MyAccountWindow", {
2121
construct: function() {
2222
this.base(arguments, "credits", this.tr("My Account"));
2323

24-
const width = 990;
24+
const width = 850;
2525
const height = 700;
2626
const maxHeight = 700;
2727
this.set({

services/static-webserver/client/source/class/osparc/desktop/preferences/pages/TagsPage.js

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ qx.Class.define("osparc.desktop.preferences.pages.TagsPage", {
2424
const intro = osparc.ui.window.TabbedView.createHelpLabel(msg);
2525
this._add(intro);
2626

27-
this._add(new qx.ui.core.Spacer(null, 10));
28-
2927
this.__renderLayout();
3028
},
3129

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,11 @@ qx.Class.define("osparc.file.TreeFolderView", {
166166
pollTasks.createPollingTask(fetchPromise)
167167
.then(task => {
168168
task.addListener("resultReceived", e => {
169-
const size = e.getData();
169+
const data = e.getData();
170+
const size = (data && "result" in data) ? osparc.utils.Utils.bytesToSize(data["result"]) : "-";
170171
totalSize.set({
171172
icon: null,
172-
label: this.tr("Total size: ") + osparc.utils.Utils.bytesToSize(size),
173+
label: this.tr("Total size: ") + size,
173174
});
174175
});
175176
task.addListener("pollingError", e => totalSize.hide());

0 commit comments

Comments
 (0)