Skip to content

Commit c98f45d

Browse files
committed
refactor
1 parent c9e024d commit c98f45d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -951,9 +951,7 @@ qx.Class.define("osparc.dashboard.CardBase", {
951951

952952
openData: function() {
953953
const resourceData = this.getResourceData();
954-
const studyDataManager = new osparc.widget.StudyDataManager(resourceData["uuid"], null);
955-
const title = osparc.product.Utils.getStudyAlias({firstUpperCase: true}) + this.tr(" Files");
956-
osparc.ui.window.Window.popUpInWindow(studyDataManager, title, osparc.dashboard.ResourceDetails.WIDTH, osparc.dashboard.ResourceDetails.HEIGHT);
954+
osparc.widget.StudyDataManager.popUpInWindow(resourceData["uuid"]);
957955
},
958956

959957
openBilling: function() {

services/static-webserver/client/source/class/osparc/widget/StudyDataManager.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ qx.Class.define("osparc.widget.StudyDataManager", {
5858
this.__reloadTree();
5959
},
6060

61+
statics: {
62+
popUpInWindow: function(studyId, nodeId) {
63+
const studyDataManager = new osparc.widget.StudyDataManager(studyId, nodeId);
64+
const title = osparc.product.Utils.getStudyAlias({firstUpperCase: true}) + qx.locale.Manager.tr(" Files");
65+
osparc.ui.window.Window.popUpInWindow(studyDataManager, title, osparc.dashboard.ResourceDetails.WIDTH, osparc.dashboard.ResourceDetails.HEIGHT);
66+
},
67+
},
68+
6169
properties: {
6270
studyId: {
6371
check: "String",

0 commit comments

Comments
 (0)