1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

Update WorkspaceExploreBarSchema.vue

Changed search to not be case sensitive
This commit is contained in:
Salvatore Forino
2025-01-03 13:09:15 +01:00
committed by GitHub
parent 46165d2f4f
commit 39a30e48dd

View File

@@ -477,10 +477,14 @@ const searchTerm = computed(() => {
});
const filteredTables = computed(() => {
if (props.searchMethod === 'elements')
return props.database.tables.filter(table => table.name.search(searchTerm.value) >= 0 && table.type === 'table');
else
if (props.searchMethod === 'elements') {
const searchTermLower = searchTerm.value.toLowerCase();
return props.database.tables.filter(table =>
table.name.toLowerCase().includes(searchTermLower) && table.type === 'table'
);
} else {
return props.database.tables;
}
});
const filteredViews = computed(() => {