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 with stages
in 6 minutes and 28 seconds
This commit is part of merge request !186. Comments created here will be created in the context of that merge request.
......@@ -227,7 +227,7 @@ function isItemFilter(type: string | undefined) {
</script>
<template>
<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 }">
<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"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment