perf: minor changes

This commit is contained in:
Javier Segarra 2025-02-23 22:45:38 +01:00
parent 34b636319b
commit bd7f30e779
2 changed files with 3 additions and 5 deletions

View File

@ -37,9 +37,9 @@ const updateItem = async () => {
<template> <template>
<QCard class="q-pa-sm"> <QCard class="q-pa-sm">
<QCardSection class="row items-center justify-center column items-stretch"> <QCardSection class="row items-center justify-center column items-stretch">
{{ showChangeItemDialog }}
<span>{{ $t('negative.detail.modal.changeItem.title') }}</span> <span>{{ $t('negative.detail.modal.changeItem.title') }}</span>
<VnSelect <VnSelect
:label="$t('negative.detail.modal.changeItem.placeholder')"
url="Items/WithName" url="Items/WithName"
:fields="['id', 'name']" :fields="['id', 'name']"
:sort-by="['id DESC']" :sort-by="['id DESC']"

View File

@ -18,9 +18,9 @@ const $props = defineProps({
const updateState = async () => { const updateState = async () => {
try { try {
showChangeStateDialog.value = true; showChangeStateDialog.value = true;
const rowsToUpdate = $props.selectedRows.map(({ id }) => const rowsToUpdate = $props.selectedRows.map(({ ticketFk }) =>
axios.post(`Tickets/state`, { axios.post(`Tickets/state`, {
ticketFk: id, ticketFk,
code: newState.value, code: newState.value,
}), }),
); );
@ -47,8 +47,6 @@ const updateState = async () => {
:label="$t('negative.detail.modal.changeState.placeholder')" :label="$t('negative.detail.modal.changeState.placeholder')"
v-model="newState" v-model="newState"
:options="editableStates" :options="editableStates"
option-label="name"
option-value="code"
/> />
</QCardSection> </QCardSection>
<QCardActions align="right"> <QCardActions align="right">