Skip to content

Commit 5de5020

Browse files
committed
pop up project files
1 parent c98f45d commit 5de5020

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,22 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
317317
}
318318
});
319319

320+
const resourceData = this.__resourceData;
321+
if (!osparc.utils.Resources.isService(resourceData)) {
322+
const title = osparc.product.Utils.getStudyAlias({firstUpperCase: true}) + this.tr(" Files...");
323+
const iconSrc = "@FontAwesome5Solid/file/22";
324+
const dataAccess = new qx.ui.basic.Atom().set({
325+
label: title,
326+
icon: iconSrc,
327+
font: "text-14",
328+
padding: 8,
329+
gap: 18,
330+
cursor: "pointer",
331+
});
332+
dataAccess.addListener("tap", () => osparc.widget.StudyDataManager.popUpInWindow(resourceData["uuid"]));
333+
this.addWidgetToTabs(dataAccess);
334+
}
335+
320336
if (selectedTabId) {
321337
const pageFound = tabsView.getChildren().find(page => page.tabId === selectedTabId);
322338
if (pageFound) {

0 commit comments

Comments
 (0)