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",
"ErrorUserNotAuthorized",
"ErrorNoMatch",
"ErrorPickListQueryInvalid",
"DeletePrompt",
"AreYouSureUnsavedChanges",
"Leave",

View File

@@ -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;
}