diff --git a/frontend/pages/files/index.vue b/frontend/pages/files/index.vue index 58f1949..5c1c7e1 100644 --- a/frontend/pages/files/index.vue +++ b/frontend/pages/files/index.vue @@ -37,6 +37,14 @@ const renameData = ref({id: null, name: '', type: ''}) const selectedFileIndex = ref(0) const draggedItem = ref(null) +const getEntryActions = (entry) => [[ + { + label: 'Umbenennen', + icon: 'i-heroicons-pencil-square', + onSelect: () => openRenameModal(entry) + } +]] + // --- Search & Debounce --- const searchString = ref(tempStore.searchStrings["files"] || '') const debouncedSearch = ref(searchString.value) @@ -289,11 +297,15 @@ const showFile = (fileId) => { }) } +const isDialogOpen = computed(() => createFolderModalOpen.value || renameModalOpen.value) + defineShortcuts({ '/': () => document.getElementById("searchinput")?.focus(), 'Enter': { - usingInput: true, + usingInput: false, handler: () => { + if (isDialogOpen.value) return + const entry = renderedFileList.value[selectedFileIndex.value] if (!entry) return if (entry.type === "file") showFile(entry.id) @@ -413,10 +425,13 @@ const syncdokubox = async () => { {{ entry.type !== 'up' ? dayjs(entry.createdAt).format("DD.MM.YY") : '-' }}
Lege einen neuen Ordner im aktuellen Bereich an.
+