This commit is contained in:
@@ -149,6 +149,8 @@
|
||||
:items="pickLists.tags"
|
||||
:loading="tagSearchUnderway"
|
||||
:search-input.sync="searchTags"
|
||||
hide-no-data
|
||||
hide-selected
|
||||
multiple
|
||||
chips
|
||||
clearable
|
||||
@@ -351,7 +353,7 @@ export default {
|
||||
if (res.error) {
|
||||
throw res.error;
|
||||
}
|
||||
//adding this to the property will automatically have it cached by the autocomplete component
|
||||
//adding this to the property will automatically have it cached by the autocomplete component
|
||||
//as cache-items has been set so this just needs to be set here once and all is well in future
|
||||
//Any search will be kept for later so this is very efficient
|
||||
vm.pickLists.tags = res.data;
|
||||
@@ -404,7 +406,7 @@ export default {
|
||||
} else {
|
||||
vm.obj = res.data;
|
||||
//Populate tags pick list, this is required to cache it at least once and display it when form opens
|
||||
vm.pickLists.tags=res.data.tags;
|
||||
vm.pickLists.tags = res.data.tags;
|
||||
|
||||
//Update the form status
|
||||
vm.$gzform.setFormState({
|
||||
@@ -547,9 +549,9 @@ export default {
|
||||
//
|
||||
//
|
||||
function addTagsToPickList(vm, tags) {
|
||||
//add tags to existing picklist so that it contains all the unique tags ever searched for or present in the object
|
||||
//vm.pickLists.tags+=tags
|
||||
//vm.pickLists.tags=uniqueonly(vm.pickLists.tags)
|
||||
//add tags to existing picklist so that it contains all the unique tags ever searched for or present in the object
|
||||
//vm.pickLists.tags+=tags
|
||||
//vm.pickLists.tags=uniqueonly(vm.pickLists.tags)
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user