This commit is contained in:
2020-11-14 00:58:43 +00:00
parent f0a64aad8c
commit 17f20d5d2e
5 changed files with 78 additions and 7 deletions

View File

@@ -143,7 +143,7 @@ export default {
if (!this.showEditIcon) {
return null;
}
if (this.value != 0) {
if (this.value != null) {
return "$ayiEdit";
}
return "$ayiPlus";
@@ -185,8 +185,8 @@ export default {
}
}
//is it the no selection item?
if (val == 0) {
window.$gz.form.addNoSelectionItem(vm.searchResults);
if (val == null) {
window.$gz.form.addNoSelectionItem(vm.searchResults, true);
} else {
//Not here, better get it
let urlParams = "?ayaType=" + vm.ayaType + "&preId=" + vm.value;
@@ -274,7 +274,7 @@ export default {
throw new Error(res);
}
vm.searchResults = res.data;
window.$gz.form.addNoSelectionItem(vm.searchResults);
window.$gz.form.addNoSelectionItem(vm.searchResults, true);
vm.replaceLastSelection();
} catch (err) {
window.$gz.errorHandler.handleFormError(err);