8315-devToTest #1094
|
@ -61,9 +61,6 @@ export default boot(({ app }) => {
|
||||||
},
|
},
|
||||||
httpRequest: error.request.response,
|
httpRequest: error.request.response,
|
||||||
};
|
};
|
||||||
|
|
||||||
const isErrorPrivaleges = response?.code == 'ACCESS_DENIED';
|
|
||||||
|
|
||||||
const opts = {
|
const opts = {
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
|
@ -72,16 +69,15 @@ export default boot(({ app }) => {
|
||||||
dense: true,
|
dense: true,
|
||||||
flat: false,
|
flat: false,
|
||||||
round: true,
|
round: true,
|
||||||
noDismiss: isErrorPrivaleges,
|
|
||||||
handler: async () => {
|
handler: async () => {
|
||||||
if (isErrorPrivaleges) {
|
const reason = ref(
|
||||||
// Create message and send to support
|
response.data.error.code == 'ACCESS_DENIED'
|
||||||
console.log('QUIERO ACCEDER!!!');
|
? i18n.global.t('cau.askPrivileges')
|
||||||
} else {
|
: ''
|
||||||
const reason = ref();
|
);
|
||||||
openConfirmationModal(
|
openConfirmationModal(
|
||||||
i18n.global.t('globals.sendCau'),
|
i18n.global.t('cau.title'),
|
||||||
false,
|
i18n.global.t('cau.subtitle'),
|
||||||
async () => {
|
async () => {
|
||||||
await axios.post('OsTickets/send-to-support', {
|
await axios.post('OsTickets/send-to-support', {
|
||||||
reason: reason.value,
|
reason: reason.value,
|
||||||
|
@ -93,15 +89,13 @@ export default boot(({ app }) => {
|
||||||
component: VnInput,
|
component: VnInput,
|
||||||
props: {
|
props: {
|
||||||
modelValue: reason,
|
modelValue: reason,
|
||||||
'onUpdate:modelValue': (val) =>
|
'onUpdate:modelValue': (val) => (reason.value = val),
|
||||||
(reason.value = val),
|
label: i18n.global.t('cau.inputLabel'),
|
||||||
label: i18n.global.t('globals.ExplainReason'),
|
|
||||||
class: 'full-width',
|
class: 'full-width',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -317,8 +317,6 @@ globals:
|
||||||
deleteConfirmTitle: Delete selected elements
|
deleteConfirmTitle: Delete selected elements
|
||||||
changeState: Change state
|
changeState: Change state
|
||||||
raid: 'Raid {daysInForward} days'
|
raid: 'Raid {daysInForward} days'
|
||||||
sendCau: Send cau
|
|
||||||
ExplainReason: Explain why this error should not appear
|
|
||||||
errors:
|
errors:
|
||||||
statusUnauthorized: Access denied
|
statusUnauthorized: Access denied
|
||||||
statusInternalServerError: An internal server error has ocurred
|
statusInternalServerError: An internal server error has ocurred
|
||||||
|
@ -356,6 +354,11 @@ resetPassword:
|
||||||
repeatPassword: Repeat password
|
repeatPassword: Repeat password
|
||||||
passwordNotMatch: Passwords don't match
|
passwordNotMatch: Passwords don't match
|
||||||
passwordChanged: Password changed
|
passwordChanged: Password changed
|
||||||
|
cau:
|
||||||
|
title: Send cau
|
||||||
|
subtitle: By sending this ticket, all the data related to the error, the section, the user, etc., are already sent.
|
||||||
|
inputLabel: Explain why this error should not appear
|
||||||
|
askPrivileges: Ask for privileges
|
||||||
entry:
|
entry:
|
||||||
list:
|
list:
|
||||||
newEntry: New entry
|
newEntry: New entry
|
||||||
|
|
|
@ -321,9 +321,6 @@ globals:
|
||||||
deleteConfirmTitle: Eliminar los elementos seleccionados
|
deleteConfirmTitle: Eliminar los elementos seleccionados
|
||||||
changeState: Cambiar estado
|
changeState: Cambiar estado
|
||||||
raid: 'Redada {daysInForward} días'
|
raid: 'Redada {daysInForward} días'
|
||||||
sendCau: Enviar cau
|
|
||||||
ExplainReason: Explique el motivo por el que no deberia aparecer este fallo
|
|
||||||
By sending this ticket, all the data related to the error, the section, the user, etc., are already sent.: Al enviar este cau ya se envían todos los datos relacionados con el error, la sección, el usuario, etc
|
|
||||||
errors:
|
errors:
|
||||||
statusUnauthorized: Acceso denegado
|
statusUnauthorized: Acceso denegado
|
||||||
statusInternalServerError: Ha ocurrido un error interno del servidor
|
statusInternalServerError: Ha ocurrido un error interno del servidor
|
||||||
|
@ -359,6 +356,11 @@ resetPassword:
|
||||||
repeatPassword: Repetir contraseña
|
repeatPassword: Repetir contraseña
|
||||||
passwordNotMatch: Las contraseñas no coinciden
|
passwordNotMatch: Las contraseñas no coinciden
|
||||||
passwordChanged: Contraseña cambiada
|
passwordChanged: Contraseña cambiada
|
||||||
|
cau:
|
||||||
|
title: Enviar cau
|
||||||
|
subtitle: Al enviar este cau ya se envían todos los datos relacionados con el error, la sección, el usuario, etc
|
||||||
|
inputLabel: Explique el motivo por el que no deberia aparecer este fallo
|
||||||
|
askPrivileges: Solicitar permisos
|
||||||
entry:
|
entry:
|
||||||
list:
|
list:
|
||||||
newEntry: Nueva entrada
|
newEntry: Nueva entrada
|
||||||
|
|
Loading…
Reference in New Issue