From 437709446e8f8cd52ffcf2bc37f902e982379ee0 Mon Sep 17 00:00:00 2001 From: merefield Date: Fri, 22 Sep 2023 14:35:50 +0100 Subject: [PATCH] prettier --- .../components/wizard-subscription-status.js | 14 +++++++------- .../components/wizard-subscription-status.hbs | 11 +++++++++-- 2 files changed, 16 insertions(+), 9 deletions(-) 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 @@
{{#if authorized}} {{conditional-loading-spinner size="small" condition=unauthorizing}} - + {{i18n "admin.wizard.subscription.deauthorize"}} {{else}} @@ -10,7 +16,8 @@ class="btn-primary" label="admin.wizard.subscription.authorize" title="admin.wizard.subscription.authorize" - action=(action "authorize")}} + action=(action "authorize") + }} {{/if}}