Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-21 17:00:29 +01:00
Update support to client gem version 0.1.6
Dieser Commit ist enthalten in:
Ursprung
7e6749cae0
Commit
fa1800e7a6
2 geänderte Dateien mit 10 neuen und 6 gelöschten Zeilen
|
@ -15,10 +15,12 @@ export default class WizardSubscriptionStatus extends Component {
|
|||
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
ajax(`${this.basePath}`)
|
||||
ajax(`${this.basePath}?resource=discourse-custom-wizard`)
|
||||
.then((result) => {
|
||||
this.supplierId = result.suppliers[0].id;
|
||||
this.authorized = result.suppliers[0].authorized;
|
||||
if (result.suppliers && result.suppliers.length) {
|
||||
this.supplierId = result.suppliers[0].id;
|
||||
this.authorized = result.suppliers[0].authorized;
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
this.subscription.retrieveSubscriptionStatus();
|
||||
|
@ -41,8 +43,10 @@ export default class WizardSubscriptionStatus extends Component {
|
|||
},
|
||||
})
|
||||
.then((result) => {
|
||||
this.supplierId = result.supplier.id;
|
||||
this.authorized = !(result.supplier.authorized_at === null);
|
||||
if (result.success) {
|
||||
this.supplierId = result.supplier_id;
|
||||
this.authorized = false;
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
this.unauthorizing = false;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
# meta_topic_id: 73345
|
||||
|
||||
gem 'liquid', '5.5.0', require: true
|
||||
gem "discourse_subscription_client", "0.1.2", require_name: "discourse_subscription_client"
|
||||
gem "discourse_subscription_client", "0.1.6", require_name: "discourse_subscription_client"
|
||||
gem 'discourse_plugin_statistics', '0.1.0.pre7', require: true
|
||||
register_asset 'stylesheets/common/admin.scss'
|
||||
register_asset 'stylesheets/common/wizard.scss'
|
||||
|
|
Laden …
In neuem Issue referenzieren