diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js index 5018963a..dcbc5ade 100644 --- a/ayanova/src/api/translation.js +++ b/ayanova/src/api/translation.js @@ -147,6 +147,7 @@ export default { "ErrorUserNotAuthenticated", "ErrorUserNotAuthorized", "ErrorNoMatch", + "ErrorPickListQueryInvalid", "DeletePrompt", "AreYouSureUnsavedChanges", "Leave", diff --git a/ayanova/src/components/pick-list.vue b/ayanova/src/components/pick-list.vue index 4022bff4..68779160 100644 --- a/ayanova/src/components/pick-list.vue +++ b/ayanova/src/components/pick-list.vue @@ -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; }