This commit is contained in:
2020-03-20 19:09:23 +00:00
parent 3224596350
commit b58e90d44c
2 changed files with 5 additions and 9 deletions

View File

@@ -147,6 +147,7 @@ export default {
"ErrorUserNotAuthenticated", "ErrorUserNotAuthenticated",
"ErrorUserNotAuthorized", "ErrorUserNotAuthorized",
"ErrorNoMatch", "ErrorNoMatch",
"ErrorPickListQueryInvalid",
"DeletePrompt", "DeletePrompt",
"AreYouSureUnsavedChanges", "AreYouSureUnsavedChanges",
"Leave", "Leave",

View File

@@ -10,7 +10,7 @@
item-disabled="!active" item-disabled="!active"
:error-messages="errors" :error-messages="errors"
:loading="searchUnderway" :loading="searchUnderway"
:placeholder="lt('Search by text, ..tags or both')" :placeholder="lt('Search')"
:search-input.sync="searchEntry" :search-input.sync="searchEntry"
auto-select-first auto-select-first
:multiple="multiple" :multiple="multiple"
@@ -247,8 +247,7 @@ export default {
queryTerms = val.split(" "); queryTerms = val.split(" ");
if (queryTerms.length > 2) { if (queryTerms.length > 2) {
//todo: put client side localized validation error message in component //todo: put client side localized validation error message in component
vm.errors.push("LTERROR TOO MANY TERMS"); vm.errors.push(vm.lt("ErrorPickListQueryInvalid"));
return; return;
} }
isATwoTermQuery = true; isATwoTermQuery = true;
@@ -284,9 +283,7 @@ export default {
window.$gz._.startsWith(queryTerms[1], "..") window.$gz._.startsWith(queryTerms[1], "..")
) { ) {
//todo: put client side localized validation error message in component //todo: put client side localized validation error message in component
vm.errors.push( vm.errors.push(vm.lt("ErrorPickListQueryInvalid"));
"LTERROR if two terms one must be tag and one must be text"
);
return; return;
} }
@@ -297,9 +294,7 @@ export default {
!window.$gz._.startsWith(queryTerms[1], "..") !window.$gz._.startsWith(queryTerms[1], "..")
) { ) {
//todo: put client side localized validation error message in component //todo: put client side localized validation error message in component
vm.errors.push( vm.errors.push(vm.lt("ErrorPickListQueryInvalid"));
"LTERROR if two terms one must be tag and one must be text"
);
return; return;
} }