This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
item-disabled="!active"
|
item-disabled="!active"
|
||||||
:error-messages="errors"
|
:error-messages="errors"
|
||||||
:loading="searchUnderway"
|
:loading="searchUnderway"
|
||||||
:placeholder="lt('search hint here')"
|
:placeholder="lt('Search by text, ..tags or both')"
|
||||||
:search-input.sync="searchEntry"
|
:search-input.sync="searchEntry"
|
||||||
auto-select-first
|
auto-select-first
|
||||||
:multiple="multiple"
|
:multiple="multiple"
|
||||||
@@ -46,6 +46,7 @@ import _ from "../libs/lodash.min.js";
|
|||||||
//todo test multiple selection
|
//todo test multiple selection
|
||||||
//todo: search only property that forces user to search vs just drop down and get default 100
|
//todo: search only property that forces user to search vs just drop down and get default 100
|
||||||
//todo: append or use slot to put at end of drop down menu a "type to search for more" when the results are from an empty query only
|
//todo: append or use slot to put at end of drop down menu a "type to search for more" when the results are from an empty query only
|
||||||
|
//todo: translation keys when done
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
created() {
|
created() {
|
||||||
@@ -55,13 +56,14 @@ export default {
|
|||||||
if (vm.preFill) {
|
if (vm.preFill) {
|
||||||
vm.searchUnderway = true;
|
vm.searchUnderway = true;
|
||||||
vm.getList();
|
vm.getList();
|
||||||
|
} else {
|
||||||
|
if (vm.noSelectionValid) {
|
||||||
|
window.$gz.form.addNoSelectionItem(vm.searchResults);
|
||||||
|
if (vm.value == null) {
|
||||||
|
vm.value = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// if (vm.noSelectionValid) {
|
|
||||||
// window.$gz.form.addNoSelectionItem(vm.searchResults);
|
|
||||||
// if (vm.value == null) {
|
|
||||||
// vm.value = 0;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
beforeUpdate() {
|
beforeUpdate() {
|
||||||
//Set the initial list items based on the record items, this only needs to be called once at init
|
//Set the initial list items based on the record items, this only needs to be called once at init
|
||||||
|
|||||||
Reference in New Issue
Block a user