Added Edit for Filetype

This commit is contained in:
2025-02-03 18:11:22 +01:00
parent 2a63ff827b
commit 70cca68f30

View File

@@ -22,6 +22,9 @@ const props = defineProps({
const emit = defineEmits(["updateNeeded"])
const folders = ref([])
const filetypes = ref([])
const setup = async () => {
const {data} = await supabase.from("folders").select().eq("tenant",useProfileStore().currentTenant)
@@ -50,6 +53,8 @@ const setup = async () => {
})
}
})
filetypes.value = await useSupabaseSelect("filetags")
}
setup()
@@ -169,6 +174,8 @@ const moveFile = async () => {
modal.close()
}
</script>
<template>
@@ -351,6 +358,18 @@ const moveFile = async () => {
>Verschieben</UButton>
</InputGroup>
<UDivider class="my-5">Dateityp</UDivider>
<InputGroup class="w-full">
<USelectMenu
class="flex-auto"
v-model="props.documentData.type"
value-attribute="id"
option-attribute="name"
:options="filetypes"
@change="updateDocument"
/>
</InputGroup>
</div>
</div>