diff --git a/services/static-webserver/client/source/class/osparc/desktop/credits/AutoRecharge.js b/services/static-webserver/client/source/class/osparc/desktop/credits/AutoRecharge.js index c91a52d116a..079c5f1278d 100644 --- a/services/static-webserver/client/source/class/osparc/desktop/credits/AutoRecharge.js +++ b/services/static-webserver/client/source/class/osparc/desktop/credits/AutoRecharge.js @@ -24,9 +24,9 @@ qx.Class.define("osparc.desktop.credits.AutoRecharge", { this._setLayout(new qx.ui.layout.VBox(15)); const store = osparc.store.Store.getInstance(); - const wallet = store.getWallets().find(wallet => wallet.getWalletId() == walletId); + const wallet = store.getWallets().find(w => w.getWalletId() == walletId); this.__buildLayout(); - this.setWallet(wallet) + this.setWallet(wallet); }, properties: { diff --git a/services/static-webserver/client/source/class/osparc/desktop/credits/BillingCenter.js b/services/static-webserver/client/source/class/osparc/desktop/credits/BillingCenter.js index 486bb42abce..456b9c4a447 100644 --- a/services/static-webserver/client/source/class/osparc/desktop/credits/BillingCenter.js +++ b/services/static-webserver/client/source/class/osparc/desktop/credits/BillingCenter.js @@ -108,7 +108,9 @@ qx.Class.define("osparc.desktop.credits.BillingCenter", { const page = new osparc.desktop.preferences.pages.BasePage(title, iconSrc); page.showLabelOnTab(); this.__paymentMethods = new osparc.desktop.paymentMethods.PaymentMethods(); - page.add(this.__paymentMethods, { flex: 1 }); + page.add(this.__paymentMethods, { + flex: 1 + }); return page; }, @@ -121,7 +123,7 @@ qx.Class.define("osparc.desktop.credits.BillingCenter", { buyCredits.set({ margin: 10 }); - buyCredits.addListener("addNewPaymentMethod", () => this.__openPaymentMethods(true), this); + buyCredits.addListener("addNewPaymentMethod", () => this.openPaymentMethods(true), this); buyCredits.addListener("transactionCompleted", () => this.__openTransactions(true), this); page.add(buyCredits); return page; @@ -172,20 +174,20 @@ qx.Class.define("osparc.desktop.credits.BillingCenter", { if (this.__paymentMethods) { const paymentMethods = this.__paymentMethods.getPaymentMethods(); const buyView = new osparc.desktop.credits.BuyCreditsStepper( - paymentMethods.map(({ idr, cardHolderName, cardNumberMasked }) => ({ + paymentMethods.map(({idr, cardHolderName, cardNumberMasked}) => ({ label: `${cardHolderName} ${cardNumberMasked}`, id: idr })) - ) + ); const win = osparc.ui.window.Window.popUpInWindow(buyView, "Buy credits", 400, 550).set({ resizable: false, movable: false - }) + }); buyView.addListener("completed", () => win.close()); } }, - __openPaymentMethods: function() { + openPaymentMethods: function() { this.__openPage(this.__paymentMethodsPage); }, @@ -200,6 +202,6 @@ qx.Class.define("osparc.desktop.credits.BillingCenter", { __openUsage: function() { this.__openPage(this.__usagePage); - }, + } } }); diff --git a/services/static-webserver/client/source/class/osparc/desktop/credits/BillingCenterWindow.js b/services/static-webserver/client/source/class/osparc/desktop/credits/BillingCenterWindow.js index 96840bb1d56..24318bd38c6 100644 --- a/services/static-webserver/client/source/class/osparc/desktop/credits/BillingCenterWindow.js +++ b/services/static-webserver/client/source/class/osparc/desktop/credits/BillingCenterWindow.js @@ -57,7 +57,7 @@ qx.Class.define("osparc.desktop.credits.BillingCenterWindow", { }, openPaymentMethods: function() { - this.__billingCenter.__openPaymentMethods(); + this.__billingCenter.openPaymentMethods(); }, openTransactions: function() {