From 35fb2e3a4cad6f28fba51bf2924319977ce6e552 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 25 Mar 2020 18:44:10 +0000 Subject: [PATCH] --- ayanova/src/components/pick-list.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ayanova/src/components/pick-list.vue b/ayanova/src/components/pick-list.vue index 057f5a92..b842a879 100644 --- a/ayanova/src/components/pick-list.vue +++ b/ayanova/src/components/pick-list.vue @@ -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(" ")) {