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

Merge pull request #912 from salvymc/patch-1

Update WorkspaceExploreBarSchema.vue - Changed search to not be case sensitive
This commit is contained in:
2025-01-09 16:48:37 +01:00
committed by GitHub
3 changed files with 18 additions and 4 deletions

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
return props.database.tables;
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(() => {