mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-25 06:26:28 +08:00
Remove spinner in repository table after error caused by provisioning snapshot [SCI-4665]
This commit is contained in:
parent
1c34762af3
commit
405d5b31bb
2 changed files with 9 additions and 6 deletions
|
@ -644,9 +644,10 @@ var RepositoryDatatable = (function(global) {
|
|||
},
|
||||
error: function(ev) {
|
||||
if (ev.status === 403) {
|
||||
HelperModule.flashAlertMsg(
|
||||
I18n.t('repositories.js.permission_error'), ev.responseJSON.style
|
||||
);
|
||||
HelperModule.flashAlertMsg(I18n.t('repositories.js.permission_error'), ev.responseJSON.style);
|
||||
} else {
|
||||
animateSpinner(null, false);
|
||||
HelperModule.flashAlertMsg(ev.responseJSON.flash, 'danger');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -672,9 +673,10 @@ var RepositoryDatatable = (function(global) {
|
|||
},
|
||||
error: function(ev) {
|
||||
if (ev.status === 403) {
|
||||
HelperModule.flashAlertMsg(
|
||||
I18n.t('repositories.js.permission_error'), ev.responseJSON.style
|
||||
);
|
||||
HelperModule.flashAlertMsg(I18n.t('repositories.js.permission_error'), ev.responseJSON.style);
|
||||
} else {
|
||||
animateSpinner(null, false);
|
||||
HelperModule.flashAlertMsg(ev.responseJSON.flash, 'danger');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -111,6 +111,7 @@ var RepositoryDatatableRowEditor = (function() {
|
|||
|
||||
$table.on('ajax:error', `.${EDIT_FORM_CLASS_NAME}`, function(ev, data) {
|
||||
animateSpinner(null, false);
|
||||
$(TABLE.nodes()).find('.spinner').remove();
|
||||
HelperModule.flashAlertMsg(data.responseJSON.flash, 'danger');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue