refs #6172 test: fix test
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Javier Segarra 2023-12-20 14:47:34 +01:00
parent 897d410ee6
commit 1c9493839d
3 changed files with 5 additions and 4 deletions

View File

@ -37,10 +37,10 @@ const onResponse = (response) => {
};
const onResponseError = (error) => {
let message = '';
const { response } = error;
const dataError = response?.data?.error;
let message = dataError?.message;
switch (response?.status) {
case 500:
@ -54,7 +54,8 @@ const onResponseError = (error) => {
break;
default:
message = `errors.${dataError?.message}`;
if(dataError?.code)
message = `errors.${dataError?.code}`;
break;
}

View File

@ -71,7 +71,7 @@ export default {
statusGatewayTimeout: 'Could not contact the server',
userConfig: 'Error fetching user config',
create: 'Error during creation',
'This ticket is locked.': 'This ticket is locked',
'This ticket is locked': 'This ticket is locked',
},
login: {
title: 'Login',

View File

@ -70,7 +70,7 @@ export default {
statusGatewayTimeout: 'No se ha podido contactar con el servidor',
userConfig: 'Error al obtener configuración de usuario',
create: 'Error al crear',
'This ticket is locked.': 'Este ticket está bloqueado',
'This ticket is locked': 'Este ticket está bloqueado',
},
login: {
title: 'Inicio de sesión',