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 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 {
@service siteSettings;
@tracked supplierId = null;
@tracked authorized = false;
constructor() {
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
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
# name: discourse-custom-wizard
# 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
# url: https://github.com/paviliondev/discourse-custom-wizard
# contact_emails: development@pavilion.tech