Commit 6c1f4b0a by Billy Larru

usando response status en eliminar rol

parent c656cfc8
......@@ -140,13 +140,15 @@ const mostrarModalEliminacion = (data) => {
}).then((result) => {
if (result.value) {
ajaxWebService.patch(`${URI_ROL_POLICIA}/${id}`, {estado}).then((response) => {
swal({
type: 'success',
title: '¡Eliminado correctamente!',
showConfirmButton: false,
timer: 1500
});
listarRolesPolicias();
if (response.status) {
swal({
type: 'success',
title: '¡Eliminado correctamente!',
showConfirmButton: false,
timer: 1500
});
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