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, default: null,
}, },
order: { order: {
type: Array, type: String,
default: [], default: '',
}, },
limit: { limit: {
type: Number, type: Number,

View File

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

View File

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