feat: refs #8388 add hasFile prop to VnDms component
gitea/salix-front/pipeline/pr-dev Build queued... Details

This commit is contained in:
Jorge Penadés 2025-03-24 11:12:15 +01:00
parent 97003e19ef
commit 028477ecbe
1 changed files with 5 additions and 1 deletions

View File

@ -35,6 +35,10 @@ const $props = defineProps({
type: String,
default: null,
},
hasFile: {
type: Boolean,
default: false,
},
});
const warehouses = ref();
@ -49,7 +53,7 @@ onMounted(() => {
if (!$props.formInitialData) {
dms.value.description =
$props.description ?? t($props.model + 'Description', dms.value);
dms.value.hasFile = false;
dms.value.hasFile = $props.hasFile;
}
});
function onFileChange(files) {