this.prepareTagsInput();
},
- handleErrors (response) {
- const message = response['err_msg'] ? translate(response['err_msg']) : translate('default_error_message');
- this.showErrors([{ msg: message }]);
- },
-
onFormSubmit () {
ModalForm.prototype.onFormSubmit.apply(this, arguments);
const actions = [];
(e: Object) => {
this.enableForm();
this.hideSpinner();
- e.response.json().then(r => this.handleErrors(r));
+ e.response.json().then(r => this.showErrors(r.errors, r.warnings));
}
);
},
</div>
<div class="modal-body">
<div class="js-modal-messages"></div>
- <i class="icon-spinner"></i>
+ <div class="text-center">
+ <i class="spinner spinner-margin"></i>
+ </div>
</div>
<div class="modal-foot">
-
+ <a id="bulk-change-cancel" href="#" class="js-modal-close">{{t 'cancel'}}</a>
</div>
{{/if}}