Commit 6c1f4b0a by Billy Larru

usando response status en eliminar rol

parent c656cfc8
...@@ -140,13 +140,15 @@ const mostrarModalEliminacion = (data) => { ...@@ -140,13 +140,15 @@ const mostrarModalEliminacion = (data) => {
}).then((result) => { }).then((result) => {
if (result.value) { if (result.value) {
ajaxWebService.patch(`${URI_ROL_POLICIA}/${id}`, {estado}).then((response) => { ajaxWebService.patch(`${URI_ROL_POLICIA}/${id}`, {estado}).then((response) => {
swal({ if (response.status) {
type: 'success', swal({
title: '¡Eliminado correctamente!', type: 'success',
showConfirmButton: false, title: '¡Eliminado correctamente!',
timer: 1500 showConfirmButton: false,
}); timer: 1500
listarRolesPolicias(); });
listarRolesPolicias();
}
}); });
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment