Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-21 17:00:29 +01:00
try alternative subscription update
Dieser Commit ist enthalten in:
Ursprung
2b867ce678
Commit
06e5b4baae
2 geänderte Dateien mit 19 neuen und 19 gelöschten Zeilen
|
@ -39,23 +39,24 @@ export default class WizardSubscriptionBadge extends Component {
|
|||
|
||||
@action
|
||||
update() {
|
||||
this.updating = true;
|
||||
return ajax(`${this.basePath}/subscriptions`, {
|
||||
type: "POST",
|
||||
})
|
||||
.then(() => {
|
||||
if (this.subscription.subscribed) {
|
||||
this.updateIcon = "check";
|
||||
} else {
|
||||
this.updateIcon = "times";
|
||||
}
|
||||
})
|
||||
.catch(popupAjaxError)
|
||||
.finally(() => {
|
||||
this.updating = false;
|
||||
// setTimeout(() => {
|
||||
// this.updateIcon = null;
|
||||
// }, 7000);
|
||||
});
|
||||
this.subscription.retrieveSubscriptionStatus();
|
||||
// this.updating = true;
|
||||
// return ajax(`${this.basePath}/subscriptions`, {
|
||||
// type: "POST",
|
||||
// })
|
||||
// .then(() => {
|
||||
// if (this.subscription.subscribed) {
|
||||
// this.updateIcon = "check";
|
||||
// } else {
|
||||
// this.updateIcon = "times";
|
||||
// }
|
||||
// })
|
||||
// .catch(popupAjaxError)
|
||||
// .finally(() => {
|
||||
// this.updating = false;
|
||||
// setTimeout(() => {
|
||||
// this.updateIcon = null;
|
||||
// }, 7000);
|
||||
// });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,6 @@ export default class WizardSubscriptionStatus extends Component {
|
|||
.finally(() => {
|
||||
this.unauthorizing = false;
|
||||
this.subscription.retrieveSubscriptionStatus();
|
||||
//window.location.reload();
|
||||
})
|
||||
.catch(popupAjaxError);
|
||||
}
|
||||
|
|
Laden …
In neuem Issue referenzieren