Commit 6c1f4b0a by Billy Larru

usando response status en eliminar rol

parent c656cfc8
...@@ -140,6 +140,7 @@ const mostrarModalEliminacion = (data) => { ...@@ -140,6 +140,7 @@ 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) => {
if (response.status) {
swal({ swal({
type: 'success', type: 'success',
title: '¡Eliminado correctamente!', title: '¡Eliminado correctamente!',
...@@ -147,6 +148,7 @@ const mostrarModalEliminacion = (data) => { ...@@ -147,6 +148,7 @@ const mostrarModalEliminacion = (data) => {
timer: 1500 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