Skip to content

Commit 237e451

Browse files
committed
closeWindow
1 parent b8858e4 commit 237e451

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,9 @@ qx.Class.define("osparc.dashboard.CardBase", {
10441044
win.close();
10451045
this.fireDataEvent("publishTemplate", e.getData());
10461046
});
1047+
resourceDetails.addListener("closeWindow", () => {
1048+
win.close();
1049+
});
10471050
resourceDetails.addListener("openStudy", e => {
10481051
const openCB = () => win.close();
10491052
const studyId = e.getData()["uuid"];

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
9494
"updateService": "qx.event.type.Data",
9595
"updateHypertool": "qx.event.type.Data",
9696
"publishTemplate": "qx.event.type.Data",
97+
"closeWindow": "qx.event.type.Event",
9798
},
9899

99100

@@ -484,6 +485,9 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
484485
const enabled = osparc.study.Utils.canBeOpened(resourceData);
485486
page.openButton.setEnabled(enabled);
486487
})
488+
billingSettings.addListener("closeWindow", () => {
489+
this.fireEvent("closeWindow");
490+
});
487491
const billingScroll = new qx.ui.container.Scroll(billingSettings);
488492
page.addToContent(billingScroll);
489493
}

services/static-webserver/client/source/class/osparc/study/BillingSettings.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ qx.Class.define("osparc.study.BillingSettings", {
3333

3434
events: {
3535
"debtPayed": "qx.event.type.Event",
36+
"closeWindow": "qx.event.type.Event",
3637
},
3738

3839
members: {
@@ -291,6 +292,7 @@ qx.Class.define("osparc.study.BillingSettings", {
291292
osparc.study.Utils.extractDebtFromError(this.__studyData["uuid"], err);
292293
}
293294
osparc.FlashMessenger.logError(err);
295+
this.fireEvent("closeWindow");
294296
})
295297
.finally(() => {
296298
creditAccountBox.setEnabled(true);

0 commit comments

Comments
 (0)