|
|
|
@ -120,7 +120,7 @@ watch(
|
|
|
|
|
|
|
|
|
|
/** updates attachments array for autosave */ |
|
|
|
|
function updateModelValue(data: string | Record<string, any>[]) { |
|
|
|
|
emits('update:modelValue', data) |
|
|
|
|
emits('update:modelValue', typeof data === 'string' ? data : JSON.stringify(data)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** Close modal on escape press, disable dropzone as well */ |
|
|
|
@ -152,7 +152,8 @@ watch(
|
|
|
|
|
:target="currentCellRef" |
|
|
|
|
class="nc-attachment-cell-dropzone text-white text-lg ring ring-accent ring-opacity-100 bg-gray-700/75 flex items-center justify-center gap-2 backdrop-blur-xl" |
|
|
|
|
> |
|
|
|
|
<MaterialSymbolsFileCopyOutline class="text-accent" /> Drop here |
|
|
|
|
<MaterialSymbolsFileCopyOutline class="text-accent" /> |
|
|
|
|
Drop here |
|
|
|
|
</general-overlay> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -166,7 +167,7 @@ watch(
|
|
|
|
|
<MdiReload v-if="isLoading" :class="{ 'animate-infinite animate-spin': isLoading }" /> |
|
|
|
|
|
|
|
|
|
<a-tooltip v-else placement="bottom"> |
|
|
|
|
<template #title> Click or drop a file into cell </template> |
|
|
|
|
<template #title> Click or drop a file into cell</template> |
|
|
|
|
|
|
|
|
|
<div class="flex items-center gap-2"> |
|
|
|
|
<MaterialSymbolsAttachFile |
|
|
|
@ -225,7 +226,7 @@ watch(
|
|
|
|
|
<MdiReload v-if="isLoading" :class="{ 'animate-infinite animate-spin': isLoading }" /> |
|
|
|
|
|
|
|
|
|
<a-tooltip v-else placement="bottom"> |
|
|
|
|
<template #title> View attachments </template> |
|
|
|
|
<template #title> View attachments</template> |
|
|
|
|
|
|
|
|
|
<MdiArrowExpand |
|
|
|
|
class="transform dark:(!text-white) group-hover:(!text-accent scale-120) text-gray-500 text-[0.75rem]" |
|
|
|
|