From 0b19304d192307de39b737a24bc1cf9f23145325 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 1 Mar 2022 14:27:51 +0530 Subject: [PATCH] fix: ignore click when making entries --- src/pages/DataImport.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/DataImport.vue b/src/pages/DataImport.vue index 6a4a0cb0..67fdf5ce 100644 --- a/src/pages/DataImport.vue +++ b/src/pages/DataImport.vue @@ -320,8 +320,8 @@ @@ -358,7 +358,7 @@ export default { file: null, importer: null, importType: '', - openLoading: false, + isMakingEntries: false, percentLoading: 0, messageLoading: '', }; @@ -532,6 +532,10 @@ export default { this.importer.updateValue(event.target.value, i, j); }, async importData() { + if (this.isMakingEntries || this.complete) { + return; + } + if (this.isRequiredUnassigned) { showMessageDialog({ message: this.t`Required Fields not Assigned`, @@ -573,7 +577,7 @@ export default { this.importer = new Importer(this.labelDoctypeMap[this.importType]); }, setLoadingStatus(isMakingEntries, entriesMade, totalEntries) { - this.openLoading = isMakingEntries; + this.isMakingEntries = isMakingEntries; this.percentLoading = entriesMade / totalEntries; this.messageLoading = isMakingEntries ? `${entriesMade} entries made out of ${totalEntries}...`