diff --git a/assets/javascripts/discourse/components/wizard-subscription-status.js b/assets/javascripts/discourse/components/wizard-subscription-status.js index bbd2ed35..2d3f528c 100644 --- a/assets/javascripts/discourse/components/wizard-subscription-status.js +++ b/assets/javascripts/discourse/components/wizard-subscription-status.js @@ -19,7 +19,7 @@ export default class WizardSubscriptionStatus extends Component { ajax("/admin/plugins/subscription-client/suppliers").then((result) => { this.supplierId = result.suppliers[0].id; this.authorized = result.suppliers[0].authorized; - }) + }); } @action @@ -32,11 +32,11 @@ export default class WizardSubscriptionStatus extends Component { this.unauthorizing = true; ajax(`${this.basePath}/authorize`, { - type: "DELETE", - data: { - supplier_id: this.supplierId, - }, - }) + type: "DELETE", + data: { + supplier_id: this.supplierId, + }, + }) .then((result) => { this.supplierId = result.supplier.id; this.authorized = !(result.supplier.authorized_at === null); @@ -46,5 +46,5 @@ export default class WizardSubscriptionStatus extends Component { window.location.reload(); }) .catch(popupAjaxError); - }; + } } diff --git a/assets/javascripts/discourse/templates/components/wizard-subscription-status.hbs b/assets/javascripts/discourse/templates/components/wizard-subscription-status.hbs index 481c9788..e9941e69 100644 --- a/assets/javascripts/discourse/templates/components/wizard-subscription-status.hbs +++ b/assets/javascripts/discourse/templates/components/wizard-subscription-status.hbs @@ -1,7 +1,13 @@