Fix protocol duplication table reload [SCI-8074]

This commit is contained in:
Anton 2023-03-07 14:31:15 +01:00
parent f22f00f856
commit 2a794b68ac

View file

@ -516,13 +516,12 @@ var ProtocolsIndex = (function() {
url: $el.data('url'),
data: JSON.stringify({ ids: rowsSelected }),
contentType: 'application/json'
},
(data) => {
animateSpinner(null, false);
HelperModule.flashAlertMsg(data.message, 'success');
reloadTable();
}
).error((data) => {
).success((data) => {
animateSpinner(null, false);
HelperModule.flashAlertMsg(data.message, 'success');
reloadTable();
}).error((data) => {
animateSpinner(null, false);
HelperModule.flashAlertMsg(data.responseJSON.message, 'danger');
});