refactor: refs #7318 update order prop type to string and improve conditional rendering for zone
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jose Antonio Tubau 2025-02-07 08:32:33 +01:00
parent f6e53e478f
commit 1f1fa1e2b6
3 changed files with 4 additions and 4 deletions

View File

@ -42,8 +42,8 @@ const props = defineProps({
default: null,
},
order: {
type: Array,
default: [],
type: String,
default: '',
},
limit: {
type: Number,

View File

@ -86,7 +86,7 @@ onMounted(async () => {
/>
</template>
</VnLv>
<VnLv v-if="entity.ticket?.zone" :label="t('claim.zone')">
<VnLv v-if="entity.ticket?.zone?.id" :label="t('claim.zone')">
<template #value>
<span class="link">
{{ entity.ticket?.zone?.name }}

View File

@ -131,7 +131,7 @@ const STATE_COLOR = {
prefix="claim"
:array-data-props="{
url: 'Claims/filter',
order: ['cs.priority ASC', 'created ASC'],
order: 'cs.priority ASC, created ASC',
}"
>
<template #advanced-menu>