display file object in case of pdf

This commit is contained in:
Tanmay Deep Sharma
2025-07-03 17:59:07 +05:30
parent 91cb159ef0
commit e49a2eb606
2 changed files with 28 additions and 10 deletions
@@ -58,11 +58,6 @@ const handleCreateDialogClose = () => {
showCreateDialog.value = false;
};
const handleCreateDialogSuccess = () => {
// Document is already added to the store optimistically, no need to refetch
// The store action 'uploadPdf' or 'create' already adds the document via commit(mutationTypes.ADD)
};
const handleAction = ({ action, id }) => {
selectedDocument.value = documents.value.find(
captainDocument => id === captainDocument.id
@@ -159,6 +154,7 @@ onMounted(() => {
:key="doc.id"
:name="doc.name || doc.external_link"
:external-link="doc.external_link"
:file="doc.file"
:assistant="doc.assistant"
:created-at="doc.created_at"
@action="handleAction"
@@ -176,7 +172,6 @@ onMounted(() => {
v-if="showCreateDialog"
ref="createDocumentDialog"
@close="handleCreateDialogClose"
@success="handleCreateDialogSuccess"
/>
<DeleteDialog
v-if="selectedDocument"