This commit is contained in:
2020-03-25 18:44:10 +00:00
parent c0cfe4f2d6
commit 35fb2e3a4c

View File

@@ -198,7 +198,13 @@ export default {
this.isTagFilter = true;
return false;
}
return item.name.indexOf(queryText) > -1;
if (this.$store.state.globalSettings.searchCaseSensitiveOnly == true) {
return item.name.indexOf(queryText) > -1;
} else {
//need to do a case insensitive filter and hopefully it mirrors postgres at the backend
return item.name.toLowerCase().indexOf(queryText.toLowerCase()) > -1;
}
//split out just the text search part
// var searchText = queryText;
// if (queryText.includes(" ")) {