1
0
Fork 0
Dieser Commit ist enthalten in:
merefield 2023-09-22 14:35:50 +01:00
Ursprung baf533a8f4
Commit 437709446e
2 geänderte Dateien mit 16 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -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
@ -46,5 +46,5 @@ export default class WizardSubscriptionStatus extends Component {
window.location.reload();
})
.catch(popupAjaxError);
};
}
}

Datei anzeigen

@ -1,7 +1,13 @@
<div class="supplier-authorize">
{{#if authorized}}
{{conditional-loading-spinner size="small" condition=unauthorizing}}
<a {{action "deauthorize"}} class="deauthorize" title={{i18n "admin.subscription_client.supplier.deauthorize"}} role="button" disabled={{unauthorizing}}>
<a
{{action "deauthorize"}}
class="deauthorize"
title={{i18n "admin.subscription_client.supplier.deauthorize"}}
role="button"
disabled={{unauthorizing}}
>
{{i18n "admin.wizard.subscription.deauthorize"}}
</a>
{{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}}
<WizardSubscriptionBadge />
<WizardSubscriptionCta />