display file object in case of pdf
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user