0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00
Dieser Commit ist enthalten in:
merefield 2023-09-08 19:14:36 +01:00
Ursprung c2ffa7699b
Commit 3a0ba4589d
2 geänderte Dateien mit 7 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -12,14 +12,18 @@ import { ajax } from "discourse/lib/ajax";
export default class WizardSubscriptionAuthorize extends Component { export default class WizardSubscriptionAuthorize extends Component {
@service siteSettings; @service siteSettings;
@tracked supplierId = null; @tracked supplierId = null;
@tracked authorized = false;
constructor() { constructor() {
super(...arguments); super(...arguments);
/admin/plugins/subscription-client/suppliers ajax("/admin/plugins/subscription-client/suppliers").then((result) => {
this.supplierId = result.suppliers[0].id;
this.authorized = result.suppliers[0].authorized;
})
} }
@action @action
authorize() { authorize() {
window.location.href = `/admin/plugins/subscription-client/authorize?supplier_id=${this.supplierId}`; window.location.href = `/admin/plugins/subscription-client/suppliers/authorize?supplier_id=${this.supplierId}`;
} }
} }

Datei anzeigen

@ -1,7 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
# name: discourse-custom-wizard # name: discourse-custom-wizard
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
# version: 2.4.18 # version: 2.4.21
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos
# url: https://github.com/paviliondev/discourse-custom-wizard # url: https://github.com/paviliondev/discourse-custom-wizard
# contact_emails: development@pavilion.tech # contact_emails: development@pavilion.tech