Skip to content
Snippets Groups Projects
Commit bc556958 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Add a loader to filter autocomplete

parent 275c4f44
No related branches found
No related tags found
2 merge requests!203Foldseek pages,!186Refactor facet autocomplete
Pipeline #120239 passed with warnings
...@@ -227,7 +227,7 @@ function isItemFilter(type: string | undefined) { ...@@ -227,7 +227,7 @@ function isItemFilter(type: string | undefined) {
</script> </script>
<template> <template>
<v-autocomplete :model-value="props.modelValue" class="mx-2" @click:clear="clearFilters" v-bind="autocompleteProps" <v-autocomplete :model-value="props.modelValue" class="mx-2" @click:clear="clearFilters" v-bind="autocompleteProps"
@update:focused="updateAutocompleteFocused" @update:modelValue="emitUpdateModelValue" :disabled="!hasFacetDistribution"> @update:focused="updateAutocompleteFocused" @update:modelValue="emitUpdateModelValue" :loading="!hasFacetDistribution" :disabled="!hasFacetDistribution">
<template #item="{ props, item }"> <template #item="{ props, item }">
<v-list-item v-if="isItemFilter(item?.raw?.type)" v-bind="{ ...props, active: false }" :title="item.title" <v-list-item v-if="isItemFilter(item?.raw?.type)" v-bind="{ ...props, active: false }" :title="item.title"
:prepend-icon="item?.raw?.icon ? item.raw.icon : undefined" :prepend-icon="item?.raw?.icon ? item.raw.icon : undefined"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment