This commit is contained in:
@@ -147,6 +147,7 @@ export default {
|
|||||||
"ErrorUserNotAuthenticated",
|
"ErrorUserNotAuthenticated",
|
||||||
"ErrorUserNotAuthorized",
|
"ErrorUserNotAuthorized",
|
||||||
"ErrorNoMatch",
|
"ErrorNoMatch",
|
||||||
|
"ErrorPickListQueryInvalid",
|
||||||
"DeletePrompt",
|
"DeletePrompt",
|
||||||
"AreYouSureUnsavedChanges",
|
"AreYouSureUnsavedChanges",
|
||||||
"Leave",
|
"Leave",
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user