0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 01:10:28 +01:00
Dieser Commit ist enthalten in:
merefield 2023-09-08 10:54:41 +01:00
Ursprung 27cde861b6
Commit c2ffa7699b
3 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -6,19 +6,20 @@ import { action, set } from "@ember/object";
import { inject as service } from "@ember/service"; import { inject as service } from "@ember/service";
import Component from "@glimmer/component"; import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking"; import { tracked } from "@glimmer/tracking";
import { ajax } from "discourse/lib/ajax";
// import I18n from "I18n"; // import I18n from "I18n";
export default class WizardSubscriptionAuthorize extends Component { export default class WizardSubscriptionAuthorize extends Component {
@service siteSettings; @service siteSettings;
@tracked supplierId = 1; @tracked supplierId = null;
constructor() { constructor() {
super(...arguments); super(...arguments);
/admin/plugins/subscription-client/suppliers
} }
@action @action
authorize() { authorize() {
window.location.href = `${basePath}/authorize?supplier_id=${this.supplierId}`; window.location.href = `/admin/plugins/subscription-client/authorize?supplier_id=${this.supplierId}`;
} }
} }

Datei anzeigen

@ -19,7 +19,6 @@
<div class="admin-actions"> <div class="admin-actions">
{{wizard-subscription-authorize}} {{wizard-subscription-authorize}}
{{wizard-subscription-badge}}
{{wizard-subscription-cta}} {{wizard-subscription-cta}}
</div> </div>
{{/admin-nav}} {{/admin-nav}}

Datei anzeigen

@ -12,4 +12,5 @@
title="admin.wizard.subscription.authorize" title="admin.wizard.subscription.authorize"
action=(action "authorize")}} action=(action "authorize")}}
{{/if}} {{/if}}
{{wizard-subscription-badge}}
</div> </div>