feat: add PDF upload functionality
This commit is contained in:
@@ -58,6 +58,11 @@ const handleCreateDialogClose = () => {
|
||||
showCreateDialog.value = false;
|
||||
};
|
||||
|
||||
const handleCreateDialogSuccess = () => {
|
||||
// Refresh the documents list after successful creation
|
||||
fetchDocuments();
|
||||
};
|
||||
|
||||
const handleAction = ({ action, id }) => {
|
||||
selectedDocument.value = documents.value.find(
|
||||
captainDocument => id === captainDocument.id
|
||||
@@ -171,6 +176,7 @@ onMounted(() => {
|
||||
v-if="showCreateDialog"
|
||||
ref="createDocumentDialog"
|
||||
@close="handleCreateDialogClose"
|
||||
@success="handleCreateDialogSuccess"
|
||||
/>
|
||||
<DeleteDialog
|
||||
v-if="selectedDocument"
|
||||
|
||||
Reference in New Issue
Block a user