Skip to content

Commit e4b3cd4

Browse files
committed
simplify
1 parent e21761a commit e4b3cd4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,9 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
112112
const title = resourceData.name;
113113
const window = osparc.ui.window.Window.popUpInWindow(resourceDetails, title, this.WIDTH, this.HEIGHT).set({
114114
layout: new qx.ui.layout.Grow(),
115+
...osparc.ui.window.TabbedWindow.DEFAULT_PROPS,
115116
});
116-
window.set(osparc.ui.window.TabbedWindow.DEFAULT_PROPS);
117-
window.set({
118-
width: this.WIDTH,
119-
height: this.HEIGHT,
120-
});
121-
resourceDetails.addListener("closeWindow", () => {
122-
window.close();
123-
});
117+
resourceDetails.addListener("closeWindow", () => window.close());
124118
return {
125119
resourceDetails,
126120
window,

0 commit comments

Comments
 (0)