feat: refs #6724 Disabled QCheckbox entry isBooked #292

Merged
guillermo merged 4 commits from 6724-disableEntryBooked into dev 2024-04-18 11:19:06 +00:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 46fa06cf1e - Show all commits

View File

@ -2,6 +2,7 @@
import { ref } from 'vue';
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { useRole } from 'src/composables/useRole';
import FetchData from 'components/FetchData.vue';
import FormModel from 'components/FormModel.vue';
@ -15,6 +16,8 @@ import { toDate } from 'src/filters';
const route = useRoute();
const { t } = useI18n();
const { hasAny } = useRole();
const isAdministrative = () => hasAny(['administrative']);
const suppliersOptions = ref([]);
const travelsOptions = ref([]);
@ -205,9 +208,8 @@ const onFilterTravelSelected = (formData, id) => {
<QCheckbox v-model="data.isRaid" :label="t('entry.basicData.raid')" />
</div>
<div class="col">
<!-- refs #6724 Cuando exista propiedad vn-acl o similar habilitar -->
<QCheckbox
disable
v-if="isAdministrative()"
v-model="data.isBooked"
:label="t('entry.basicData.booked')"
/>