better search UX

This commit is contained in:
Jan Prochazka
2021-09-26 19:54:18 +02:00
parent 34fce0ef58
commit f85460cce8
3 changed files with 19 additions and 2 deletions

View File

@@ -5,6 +5,12 @@
const databases = getLocalStorage(`database_list_${_id}`) || [];
return filterName(filter, displayName, server, ...databases.map(x => x.name));
};
export const createChildMatcher = props => filter => {
if (!filter) return false;
const { _id } = props;
const databases = getLocalStorage(`database_list_${_id}`) || [];
return filterName(filter, ...databases.map(x => x.name));
};
</script>
<script lang="ts">