close loading modal

This commit is contained in:
Amine Ben hammou
2018-01-30 13:26:51 +00:00
parent 43fbbca050
commit e2f23df829

View File

@@ -159,7 +159,12 @@ define(
Frequency: opts.intervalType,
});
}
}).fail(this.showError);
MailPoet.Modal.loading(false);
}).fail((err) => {
this.showError(err);
this.setState({ loading: false });
MailPoet.Modal.loading(false);
});
default:
return MailPoet.Ajax.post({
api_version: window.mailpoet_api_version,