Merge branch 'dev' of http://git.verdnatura.es/salix into dev

This commit is contained in:
Carlos Jimenez 2018-04-04 12:43:01 +02:00
commit 91172df7cd
2 changed files with 8 additions and 1 deletions

View File

@ -30,6 +30,12 @@ function interceptor($q, $window, vnApp, $translate, $cookies) {
let data = rejection.data;
let error;
switch (rejection.xhrStatus) {
case 'timeout':
case 'abort':
return $q.reject(rejection);
}
if (data && data.error instanceof Object)
error = data.error.message;
else if (rejection.status === -1)

View File

@ -8,5 +8,6 @@
"Ya existe un usuario con ese nombre": "Ya existe un usuario con ese nombre",
"Quantity cannot be zero": "Quantity cannot be zero",
"can't be blank": "can't be blank",
"DNI Incorrecto": "DNI Incorrecto"
"DNI Incorrecto": "DNI Incorrecto",
"El NIF/CIF debe ser único": "El NIF/CIF debe ser único"
}