From 98fa68bb80828bf8f91684541a57385b3c36db85 Mon Sep 17 00:00:00 2001 From: carlossa Date: Fri, 24 Nov 2023 08:41:21 +0100 Subject: [PATCH] refs 6157 markerlabel --- src/pages/Claim/Card/ClaimAction.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/pages/Claim/Card/ClaimAction.vue b/src/pages/Claim/Card/ClaimAction.vue index 2d8498367..44575f1d6 100644 --- a/src/pages/Claim/Card/ClaimAction.vue +++ b/src/pages/Claim/Card/ClaimAction.vue @@ -31,7 +31,12 @@ const selectedRows = ref([]); const destinationTypes = ref([]); const totalClaimed = ref(null); const DEFAULT_MAX_RESPONSABILITY = 5; +const DEFAULT_MIN_RESPONSABILITY = 1; const arrayData = useArrayData('claimData'); +const marker_labels = [ + { value: DEFAULT_MIN_RESPONSABILITY, label: t('claim.summary.company') }, + { value: DEFAULT_MAX_RESPONSABILITY, label: t('claim.summary.person') }, +]; const columns = computed(() => [ { @@ -258,12 +263,9 @@ async function importToNewRefundTicket() { label-always color="primary" markers - :marker-labels="[ - { value: 1, label: t('claim.summary.company') }, - { value: 5, label: t('claim.summary.person') }, - ]" - :min="1" - :max="5" + :marker-labels="marker_labels" + :min="DEFAULT_MIN_RESPONSABILITY" + :max="DEFAULT_MAX_RESPONSABILITY" />