diff --git a/components/EntityEdit.vue b/components/EntityEdit.vue index b8a173d..e69a29c 100644 --- a/components/EntityEdit.vue +++ b/components/EntityEdit.vue @@ -79,6 +79,8 @@ const loadOptions = async () => { for await(const option of optionsToLoad) { if(option.option === "countrys") { loadedOptions.value[option.option] = (await supabase.from("countrys").select()).data + } else if(option.option === "units") { + loadedOptions.value[option.option] = (await supabase.from("units").select()).data } else { loadedOptions.value[option.option] = (await useSupabaseSelect(option.option)) @@ -87,6 +89,8 @@ const loadOptions = async () => { } } } + + console.log(loadedOptions.value) } loadOptions() @@ -174,7 +178,11 @@ const contentChanged = (content, datapoint) => { :searchable="datapoint.selectSearchAttributes" :search-attributes="datapoint.selectSearchAttributes" :multiple="datapoint.selectMultiple" - /> + > + + { :search-attributes="datapoint.selectSearchAttributes" :multiple="datapoint.selectMultiple" searchable-placeholder="Suche..." - /> + > + + i.name)) const selectedFilters = ref(dataType.filters.filter(i => i.default).map(i => i.name) || []) -console.log(selectableFilters) -console.log(selectedFilters) const filteredRows = computed(() => { @@ -132,6 +130,7 @@ const filteredRows = computed(() => { class="hidden lg:block" by="key" :color="selectedColumns.length !== dataType.templateColumns.filter(i => !i.disabledInTable).length ? 'primary' : 'white'" + :ui-menu="{ width: 'min-w-max' }" >