diff --git a/package.json b/package.json index f25e570a3..eaffd8d85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salix-front", - "version": "24.36.0", + "version": "24.40.0", "description": "Salix frontend", "productName": "Salix", "author": "Verdnatura", @@ -62,4 +62,4 @@ "vite": "^5.1.4", "vitest": "^0.31.1" } -} +} \ No newline at end of file diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue index a426ac2b4..4c44d29e2 100644 --- a/src/components/CreateNewPostcodeForm.vue +++ b/src/components/CreateNewPostcodeForm.vue @@ -105,7 +105,7 @@ async function setProvince(id, data) { option-label="name" option-value="id" :rules="validate('postcode.city')" - :roles-allowed-to-create="['deliveryAssistant']" + :acls="[{ model: 'Town', props: '*', accessType: 'WRITE' }]" :emit-value="false" clearable > diff --git a/src/components/LeftMenuItem.vue b/src/components/LeftMenuItem.vue index 9fe66e278..2a6de5e2e 100644 --- a/src/components/LeftMenuItem.vue +++ b/src/components/LeftMenuItem.vue @@ -36,7 +36,7 @@ const itemComputed = computed(() => { {{ t(itemComputed.title) }} - {{ 'Ctrl + Alt + ' + item.keyBinding.toUpperCase() }} + {{ 'Ctrl + Alt + ' + item?.keyBinding?.toUpperCase() }} diff --git a/src/components/VnSelectProvince.vue b/src/components/VnSelectProvince.vue index ea10ace19..2f08db611 100644 --- a/src/components/VnSelectProvince.vue +++ b/src/components/VnSelectProvince.vue @@ -38,7 +38,7 @@ async function onProvinceCreated(_, data) { hide-selected v-model="provinceFk" :rules="validate && validate('postcode.provinceFk')" - :roles-allowed-to-create="['deliveryAssistant']" + :acls="[{ model: 'Province', props: '*', accessType: 'WRITE' }]" >