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