Skip to content

Commit a091df7

Browse files
committed
minor
1 parent c7cbc82 commit a091df7

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -383,21 +383,19 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
383383
const page = this.__billingSettings = new osparc.dashboard.resources.pages.BasePage(title, iconSrc, id);
384384
this.__addOpenButton(page);
385385

386-
if (this.__resourceData["resourceType"] === "study") {
387-
const studyData = this.__resourceData;
388-
const canBeOpened = osparc.study.Utils.canShowBillingOptions(studyData);
386+
if (resourceData["resourceType"] === "study") {
387+
const canBeOpened = osparc.study.Utils.canShowBillingOptions(resourceData);
389388
page.setEnabled(canBeOpened);
390389
}
391390

392391
const lazyLoadContent = () => {
393-
const studyData = this.__resourceData;
394392
const billingSettings = new osparc.study.BillingSettings(resourceData);
395393
billingSettings.addListener("debtPayed", () => {
396-
if (this.__resourceData["resourceType"] === "study") {
394+
if (resourceData["resourceType"] === "study") {
397395
page.payDebtButton.set({
398-
visibility: osparc.study.Utils.isInDebt(studyData) ? "visible" : "excluded"
396+
visibility: osparc.study.Utils.isInDebt(resourceData) ? "visible" : "excluded"
399397
});
400-
const canBeOpened = osparc.study.Utils.canBeOpened(studyData);
398+
const canBeOpened = osparc.study.Utils.canBeOpened(resourceData);
401399
page.openButton.setEnabled(canBeOpened);
402400
}
403401
})

0 commit comments

Comments
 (0)