feat: add PDF upload functionality

This commit is contained in:
Tanmay Deep Sharma
2025-07-02 12:52:45 +05:30
parent cdb1dc6714
commit 8f27ba081c
6 changed files with 479 additions and 34 deletions
@@ -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"