Added Edit for Filetype
This commit is contained in:
@@ -22,6 +22,9 @@ const props = defineProps({
|
|||||||
const emit = defineEmits(["updateNeeded"])
|
const emit = defineEmits(["updateNeeded"])
|
||||||
|
|
||||||
const folders = ref([])
|
const folders = ref([])
|
||||||
|
|
||||||
|
const filetypes = ref([])
|
||||||
|
|
||||||
const setup = async () => {
|
const setup = async () => {
|
||||||
const {data} = await supabase.from("folders").select().eq("tenant",useProfileStore().currentTenant)
|
const {data} = await supabase.from("folders").select().eq("tenant",useProfileStore().currentTenant)
|
||||||
|
|
||||||
@@ -50,6 +53,8 @@ const setup = async () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
filetypes.value = await useSupabaseSelect("filetags")
|
||||||
}
|
}
|
||||||
|
|
||||||
setup()
|
setup()
|
||||||
@@ -169,6 +174,8 @@ const moveFile = async () => {
|
|||||||
modal.close()
|
modal.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -351,6 +358,18 @@ const moveFile = async () => {
|
|||||||
>Verschieben</UButton>
|
>Verschieben</UButton>
|
||||||
</InputGroup>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user