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:
@@ -477,10 +477,14 @@ const searchTerm = computed(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const filteredTables = computed(() => {
|
const filteredTables = computed(() => {
|
||||||
if (props.searchMethod === 'elements')
|
if (props.searchMethod === 'elements') {
|
||||||
return props.database.tables.filter(table => table.name.search(searchTerm.value) >= 0 && table.type === 'table');
|
const searchTermLower = searchTerm.value.toLowerCase();
|
||||||
else
|
return props.database.tables.filter(table =>
|
||||||
|
table.name.toLowerCase().includes(searchTermLower) && table.type === 'table'
|
||||||
|
);
|
||||||
|
} else {
|
||||||
return props.database.tables;
|
return props.database.tables;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const filteredViews = computed(() => {
|
const filteredViews = computed(() => {
|
||||||
|
Reference in New Issue
Block a user