#8201: Fix descriptor icons error #1080

Merged
jon merged 12 commits from 8201-DescriptorIcons into dev 2024-12-27 09:55:46 +00:00
1 changed files with 4 additions and 3 deletions
Showing only changes of commit 35cef37d4f - Show all commits

View File

@ -9,7 +9,7 @@ import VnLv from 'src/components/ui/VnLv.vue';
import { toDateString } from 'src/filters';
import useCardDescription from 'src/composables/useCardDescription';
import { getUrl } from 'src/composables/getUrl';
import { useState } from 'src/composables/useState';
import { useArrayData } from 'src/composables/useArrayData';
const $props = defineProps({
id: {
@ -26,7 +26,7 @@ const $props = defineProps({
const route = useRoute();
const { t } = useI18n();
const url = ref();
const state = useState();
const arrayData = useArrayData();
const filter = {
fields: [
@ -77,7 +77,7 @@ const setData = (entity) => {
data.value = useCardDescription(entity.ref, entity.id);
};
const supplier = computed(() => state.get('supplier'));
const supplier = computed(() => arrayData.store.data);
const getEntryQueryParams = (supplier) => {
if (!supplier) return null;
@ -127,6 +127,7 @@ const getEntryQueryParams = (supplier) => {
<VnLv :label="t('supplier.summary.account')" :value="entity.account" />
</template>
<template #icons>
{{ console.log('supplier: ', supplier) }}
<QCardActions v-if="supplier" class="q-gutter-x-md">
<QIcon
v-if="!supplier.isActive"