Commit 5ea1fa98 by Billy Larru

mostrando mensaje de rol registrado en crear rol

parent d0222fb9
...@@ -246,12 +246,17 @@ function registrarRolPolicia() { ...@@ -246,12 +246,17 @@ function registrarRolPolicia() {
}; };
ajaxWebService.post(URI_ROL_POLICIA, params) ajaxWebService.post(URI_ROL_POLICIA, params)
.then((result) => { .then((response) => {
result.data = formatResponse(result);
debugger; debugger;
if (result.data.status) { if (response.status) {
swal({
type: 'success',
title: '¡Rol registrado exitosamente!',
showConfirmButton: false,
timer: 1500
})
listarRolesPolicias(); listarRolesPolicias();
console.log(result.data); console.log(response.data);
} else { } else {
} }
......
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