Scan aus der Dateienseite starten
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import {ref, computed, watch, onMounted, onUnmounted} from 'vue';
|
||||
import DocumentDisplayModal from "~/components/DocumentDisplayModal.vue";
|
||||
import DocumentUploadModal from "~/components/DocumentUploadModal.vue";
|
||||
import FileScanModal from "~/components/FileScanModal.vue";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
// --- Services & Stores ---
|
||||
@@ -329,6 +330,17 @@ const showFile = (fileId) => {
|
||||
})
|
||||
}
|
||||
|
||||
const openScanModal = () => {
|
||||
modal.open(FileScanModal, {
|
||||
scanData: {
|
||||
folder: currentFolder.value?.id,
|
||||
type: currentFolder.value?.standardFiletype,
|
||||
typeEnabled: currentFolder.value?.standardFiletype ? currentFolder.value?.standardFiletypeIsOptional : true
|
||||
},
|
||||
onScanFinished: setupPage
|
||||
})
|
||||
}
|
||||
|
||||
const isDialogOpen = computed(() => createFolderModalOpen.value || renameModalOpen.value)
|
||||
|
||||
defineShortcuts({
|
||||
@@ -412,6 +424,9 @@ const syncdokubox = async () => {
|
||||
@click="modal.open(DocumentUploadModal, { fileData: { folder: currentFolder?.id,type: currentFolder?.standardFiletype, typeEnabled: currentFolder?.standardFiletype ? currentFolder?.standardFiletypeIsOptional : true }, onUploadFinished: setupPage })">
|
||||
Datei
|
||||
</UButton>
|
||||
<UButton icon="i-heroicons-document-magnifying-glass" color="neutral" @click="openScanModal">
|
||||
Scan
|
||||
</UButton>
|
||||
<UButton icon="i-heroicons-folder-plus" color="white" @click="createFolderModalOpen = true">Ordner</UButton>
|
||||
</UButtonGroup>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user