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