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() {
|
constructor() {
|
||||||
super(...arguments);
|
super(...arguments);
|
||||||
ajax(`${this.basePath}`)
|
ajax(`${this.basePath}?resource=discourse-custom-wizard`)
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
this.supplierId = result.suppliers[0].id;
|
if (result.suppliers && result.suppliers.length) {
|
||||||
this.authorized = result.suppliers[0].authorized;
|
this.supplierId = result.suppliers[0].id;
|
||||||
|
this.authorized = result.suppliers[0].authorized;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.subscription.retrieveSubscriptionStatus();
|
this.subscription.retrieveSubscriptionStatus();
|
||||||
|
@ -41,8 +43,10 @@ export default class WizardSubscriptionStatus extends Component {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
this.supplierId = result.supplier.id;
|
if (result.success) {
|
||||||
this.authorized = !(result.supplier.authorized_at === null);
|
this.supplierId = result.supplier_id;
|
||||||
|
this.authorized = false;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.unauthorizing = false;
|
this.unauthorizing = false;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# meta_topic_id: 73345
|
# meta_topic_id: 73345
|
||||||
|
|
||||||
gem 'liquid', '5.5.0', require: true
|
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
|
gem 'discourse_plugin_statistics', '0.1.0.pre7', require: true
|
||||||
register_asset 'stylesheets/common/admin.scss'
|
register_asset 'stylesheets/common/admin.scss'
|
||||||
register_asset 'stylesheets/common/wizard.scss'
|
register_asset 'stylesheets/common/wizard.scss'
|
||||||
|
|
Laden …
In neuem Issue referenzieren