Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
wip
Dieser Commit ist enthalten in:
Ursprung
c2ffa7699b
Commit
3a0ba4589d
2 geänderte Dateien mit 7 neuen und 3 gelöschten Zeilen
|
@ -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}`;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Laden …
In neuem Issue referenzieren