feat: star defaultAddressFk instead selected address
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Javier Segarra 2025-05-01 10:42:26 +02:00
parent eb0754b3d1
commit 18c18b56c9
2 changed files with 5 additions and 4 deletions

View File

@ -8,7 +8,6 @@ import VnRow from 'components/ui/VnRow.vue';
import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue';
import VnInputDate from 'src/components/common/VnInputDate.vue';
import VnInputTime from 'components/common/VnInputTime.vue';
import axios from 'axios';
import useNotify from 'src/composables/useNotify.js';
@ -276,8 +275,6 @@ async function getZone(options) {
<VnSelect
:label="t('ticketList.client')"
v-model="clientId"
option-value="id"
option-label="name"
url="Clients"
:fields="['id', 'name']"
sort-by="id"
@ -327,7 +324,10 @@ async function getZone(options) {
>
<QItemSection style="min-width: min-content" avatar>
<QIcon
v-if="scope.opt.isActive && addressId === scope.opt.id"
v-if="
scope.opt.isActive &&
formData.client.defaultAddressFk === scope.opt.id
"
size="sm"
color="grey"
name="star"

View File

@ -20,6 +20,7 @@ export default {
'isFreezed',
'isTaxDataChecked',
'hasElectronicInvoice',
'defaultAddressFk',
'credit',
],
include: [