This commit is contained in:
@@ -72,15 +72,15 @@ export default {
|
|||||||
readonly: { type: Boolean, default: false }
|
readonly: { type: Boolean, default: false }
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
tagSearchEntry(val) {
|
async tagSearchEntry(val) {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
if (!val || vm.tagSearchUnderway) {
|
if (!val || vm.tagSearchUnderway) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vm.tagSearchUnderway = true;
|
vm.tagSearchUnderway = true;
|
||||||
window.$gz.api
|
try {
|
||||||
.get("tag-list/list?query=" + val) //roles
|
let res = await window.$gz.api.get("tag-list/list?query=" + val); //roles
|
||||||
.then(res => {
|
|
||||||
//We never expect there to be no data here
|
//We never expect there to be no data here
|
||||||
if (!res.data) {
|
if (!res.data) {
|
||||||
throw res;
|
throw res;
|
||||||
@@ -90,10 +90,9 @@ export default {
|
|||||||
//Any search will be kept for later so this is very efficient
|
//Any search will be kept for later so this is very efficient
|
||||||
vm.sourcetags = res.data;
|
vm.sourcetags = res.data;
|
||||||
vm.tagSearchUnderway = false;
|
vm.tagSearchUnderway = false;
|
||||||
})
|
} catch (err) {
|
||||||
.catch(err => {
|
|
||||||
window.$gz.errorHandler.handleFormError(err);
|
window.$gz.errorHandler.handleFormError(err);
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user