Fix
This commit is contained in:
@@ -364,33 +364,67 @@ const clearSearchString = () => {
|
||||
variant="outline"
|
||||
v-if="Object.keys(selectedFiles).find(i => selectedFiles[i] === true)"
|
||||
>Herunterladen</UButton>
|
||||
<UModal
|
||||
v-model="createFolderModalOpen"
|
||||
>
|
||||
<UCard>
|
||||
<UModal v-model="createFolderModalOpen">
|
||||
<UCard :ui="{ body: { base: 'space-y-4' } }">
|
||||
<template #header>
|
||||
Ordner Erstellen
|
||||
</template>
|
||||
<div class="flex items-center justify-between">
|
||||
<h3 class="text-base font-semibold leading-6 text-gray-900 dark:text-white">
|
||||
Ordner Erstellen
|
||||
</h3>
|
||||
<UButton color="gray" variant="ghost" icon="i-heroicons-x-mark-20-solid" class="-my-1" @click="createFolderModalOpen = false" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<UFormGroup label="Name des Ordners" required>
|
||||
<UInput
|
||||
v-model="createFolderData.name"
|
||||
placeholder="z.B. Rechnungen 2024"
|
||||
autofocus
|
||||
/>
|
||||
</UFormGroup>
|
||||
|
||||
|
||||
<UFormGroup
|
||||
label="Ordner erstellen"
|
||||
<UFormGroup
|
||||
label="Standard Dateityp"
|
||||
>
|
||||
<USelectMenu
|
||||
v-model="createFolderData.standardFiletype"
|
||||
:options="filetags"
|
||||
option-attribute="name"
|
||||
value-attribute="id"
|
||||
searchable
|
||||
searchable-placeholder="Typ suchen..."
|
||||
placeholder="Kein Standard-Typ"
|
||||
clear-search-on-close
|
||||
>
|
||||
<UInput
|
||||
v-model="createFolderData.name"
|
||||
<template #label>
|
||||
<span v-if="createFolderData.standardFiletype">
|
||||
{{ filetags.find(t => t.id === createFolderData.standardFiletype)?.name }}
|
||||
</span>
|
||||
<span v-else class="text-gray-400">Kein Typ ausgewählt</span>
|
||||
</template>
|
||||
</USelectMenu>
|
||||
</UFormGroup>
|
||||
|
||||
<div v-if="createFolderData.standardFiletype">
|
||||
<UCheckbox
|
||||
v-model="createFolderData.standardFiletypeIsOptional"
|
||||
name="isOptional"
|
||||
label="Dateityp ist optional"
|
||||
help="Wenn deaktiviert, MUSS der Nutzer beim Upload diesen Typ verwenden."
|
||||
/>
|
||||
</UFormGroup>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<UButton
|
||||
@click="createFolder"
|
||||
>
|
||||
Erstellen
|
||||
</UButton>
|
||||
<div class="flex justify-end gap-2">
|
||||
<UButton color="gray" variant="ghost" @click="createFolderModalOpen = false">
|
||||
Abbrechen
|
||||
</UButton>
|
||||
<UButton @click="createFolder" :disabled="!createFolderData.name">
|
||||
Erstellen
|
||||
</UButton>
|
||||
</div>
|
||||
</template>
|
||||
</UCard>
|
||||
|
||||
</UModal>
|
||||
|
||||
</template>
|
||||
@@ -429,8 +463,8 @@ const clearSearchString = () => {
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<span v-if="entry.type === 'file'" class="text-xl">{{dayjs(documents.find(i => i.id === entry.id).created_at).format("DD.MM.YY HH:mm")}}</span>
|
||||
<span v-if="entry.type === 'folder'" class="text-xl">{{dayjs(currentFolders.find(i => i.id === entry.id).created_at).format("DD.MM.YY HH:mm")}}</span>
|
||||
<span v-if="entry.type === 'file'" class="text-xl">{{dayjs(documents.find(i => i.id === entry.id).createdAt).format("DD.MM.YY HH:mm")}}</span>
|
||||
<span v-if="entry.type === 'folder'" class="text-xl">{{dayjs(currentFolders.find(i => i.id === entry.id).createdAt).format("DD.MM.YY HH:mm")}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user