0
0
Fork 0

Entry buys import open file explorer when clicking clip icon

This commit is contained in:
William Buezas 2024-02-06 10:14:48 -03:00
parent f6b0404cb4
commit 6773a9a696
1 changed files with 7 additions and 1 deletions

View File

@ -29,6 +29,7 @@ const importData = ref({
ref: null,
});
const inputFileRef = ref(null);
const lastItemBuysOptions = ref([]);
const packagingsOptions = ref([]);
@ -199,6 +200,7 @@ const redirectToBuysView = () => {
<VnRow class="row q-gutter-md q-mb-md">
<div class="col">
<QFile
ref="inputFileRef"
:label="t('entry.buys.file')"
v-model="importData.file"
:multiple="false"
@ -207,7 +209,11 @@ const redirectToBuysView = () => {
class="required"
>
<template #append>
<QIcon name="vn:attach" class="cursor-pointer">
<QIcon
name="vn:attach"
class="cursor-pointer"
@click="inputFileRef.pickFiles()"
>
<QTooltip>{{ t('Select a file') }}</QTooltip>
</QIcon>
</template>