8315-devToTest #1094

Merged
alexm merged 253 commits from 8315-devToTest into test 2024-12-18 10:31:55 +00:00
1 changed files with 30 additions and 22 deletions
Showing only changes of commit f6d200405c - Show all commits

View File

@ -62,6 +62,8 @@ export default boot(({ app }) => {
httpRequest: error.request.response, httpRequest: error.request.response,
}; };
const isErrorPrivaleges = response?.code == 'ACCESS_DENIED';
const opts = { const opts = {
actions: [ actions: [
{ {
@ -70,8 +72,12 @@ export default boot(({ app }) => {
dense: true, dense: true,
flat: false, flat: false,
round: true, round: true,
noDismiss: true, noDismiss: isErrorPrivaleges,
handler: async () => { handler: async () => {
if (isErrorPrivaleges) {
// Create message and send to support
console.log('QUIERO ACCEDER!!!');
} else {
const reason = ref(); const reason = ref();
openConfirmationModal( openConfirmationModal(
i18n.global.t('globals.sendCau'), i18n.global.t('globals.sendCau'),
@ -87,13 +93,15 @@ export default boot(({ app }) => {
component: VnInput, component: VnInput,
props: { props: {
modelValue: reason, modelValue: reason,
'onUpdate:modelValue': (val) => (reason.value = val), 'onUpdate:modelValue': (val) =>
(reason.value = val),
label: i18n.global.t('globals.ExplainReason'), label: i18n.global.t('globals.ExplainReason'),
class: 'full-width', class: 'full-width',
required: true, required: true,
}, },
} }
); );
}
}, },
}, },
], ],