0
0
Fork 0

refs #6172 perf: remove message code

This commit is contained in:
Javier Segarra 2023-12-15 10:08:59 +01:00
parent 134cf011e3
commit ca314c65d8
3 changed files with 0 additions and 8 deletions

View File

@ -41,7 +41,6 @@ const onResponseError = (error) => {
const { response } = error; const { response } = error;
const dataError = response?.data?.error; const dataError = response?.data?.error;
const code = dataError?.code;
switch (response?.status) { switch (response?.status) {
case 500: case 500:
@ -58,7 +57,6 @@ const onResponseError = (error) => {
message = `errors.${dataError?.message.replace(/\.*$/, '')}`; message = `errors.${dataError?.message.replace(/\.*$/, '')}`;
break; break;
} }
if (code) message = code;
if (session.isLoggedIn() && response?.status === 401) { if (session.isLoggedIn() && response?.status === 401) {
session.destroy(); session.destroy();

View File

@ -244,9 +244,6 @@ export default {
selectVideo: 'Select video:', selectVideo: 'Select video:',
notFound: 'No videos available', notFound: 'No videos available',
}, },
error:{
locked: 'This item is locked'
},
summary: { summary: {
state: 'State', state: 'State',
salesPerson: 'Sales person', salesPerson: 'Sales person',

View File

@ -242,9 +242,6 @@ export default {
selectVideo: 'Seleccionar vídeo:', selectVideo: 'Seleccionar vídeo:',
notFound: 'No hay vídeos disponibles', notFound: 'No hay vídeos disponibles',
}, },
error:{
locked: 'Este item está bloqueado'
},
summary: { summary: {
state: 'Estado', state: 'Estado',
salesPerson: 'Comercial', salesPerson: 'Comercial',