refactor: refs #7924 simplify custom inspection icon rendering in ExtraCommunity.vue
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javi Gallego 2024-12-19 10:36:35 +01:00
parent 542acc2c0e
commit ba7e636a19
1 changed files with 10 additions and 16 deletions

View File

@ -265,11 +265,6 @@ const columns = computed(() => [
showValue: false,
sortable: true,
},
{
label: '',
name: 'isCustomInspectionRequired',
align: 'center',
},
]);
async function getData() {
@ -597,7 +592,16 @@ const getColor = (percentage) => {
<QBtn flat class="link" dense>{{ entry.supplierName }}</QBtn>
<SupplierDescriptorProxy :id="entry.supplierFk" />
</QTd>
<QTd />
<QTd>
<QIcon
v-if="entry.isCustomInspectionRequired"
name="warning"
color="negative"
size="xs"
:title="t('requiresInspection')"
>
</QIcon>
</QTd>
<QTd>
<span>{{ toCurrency(entry.invoiceAmount) }}</span>
</QTd>
@ -633,16 +637,6 @@ const getColor = (percentage) => {
/>
</QBtn>
</QTd>
<QTd>
<QIcon
v-if="entry.isCustomInspectionRequired"
name="warning"
color="negative"
size="xs"
:title="t('requiresInspection')"
>
</QIcon>
</QTd>
</QTr>
</template>
</QTable>