Skip to content

Commit

Permalink
made eslint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ignapas committed Jan 9, 2024
1 parent 86ef13c commit e512d36
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},

Expand All @@ -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;
Expand Down Expand Up @@ -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);
},

Expand All @@ -200,6 +202,6 @@ qx.Class.define("osparc.desktop.credits.BillingCenter", {

__openUsage: function() {
this.__openPage(this.__usagePage);
},
}
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ qx.Class.define("osparc.desktop.credits.BillingCenterWindow", {
},

openPaymentMethods: function() {
this.__billingCenter.__openPaymentMethods();
this.__billingCenter.openPaymentMethods();
},

openTransactions: function() {
Expand Down

0 comments on commit e512d36

Please sign in to comment.