0
0
Fork 0

refactor: refs #8118 simplify dropdown change event handling in ClaimSummary and TicketSummary components

This commit is contained in:
Benjamin Esteve 2025-03-24 12:24:49 +01:00
parent 3c980a311a
commit 43701bd586
2 changed files with 4 additions and 6 deletions

View File

@ -1,6 +1,6 @@
<script setup>
import axios from 'axios';
import { ref, computed, onMounted } from 'vue';
import { ref, computed } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { toDate, toCurrency } from 'src/filters';
@ -212,8 +212,7 @@ function claimUrl(section) {
<VnDropdown
:options="claimStates"
option-label="description"
option-value="id"
@change-state="changeState($event)"
@change-state="changeState"
/>
</template>
<template #menu="{ entity }">

View File

@ -116,9 +116,8 @@ onMounted(async () => {
<VnDropdown
:disable="!isEditable()"
:options="editableStates"
:option-label="'name'"
:option-value="'code'"
@change-state="changeState($event)"
option-value="code"
@change-state="changeState"
/>
</template>
<template #menu="{ entity }">