mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
fix: ignore click when making entries
This commit is contained in:
parent
309010bdf5
commit
0b19304d19
@ -320,8 +320,8 @@
|
|||||||
</HowTo>
|
</HowTo>
|
||||||
</div>
|
</div>
|
||||||
<Loading
|
<Loading
|
||||||
v-if="openLoading"
|
v-if="isMakingEntries"
|
||||||
:open="openLoading"
|
:open="isMakingEntries"
|
||||||
:percent="percentLoading"
|
:percent="percentLoading"
|
||||||
:message="messageLoading"
|
:message="messageLoading"
|
||||||
/>
|
/>
|
||||||
@ -358,7 +358,7 @@ export default {
|
|||||||
file: null,
|
file: null,
|
||||||
importer: null,
|
importer: null,
|
||||||
importType: '',
|
importType: '',
|
||||||
openLoading: false,
|
isMakingEntries: false,
|
||||||
percentLoading: 0,
|
percentLoading: 0,
|
||||||
messageLoading: '',
|
messageLoading: '',
|
||||||
};
|
};
|
||||||
@ -532,6 +532,10 @@ export default {
|
|||||||
this.importer.updateValue(event.target.value, i, j);
|
this.importer.updateValue(event.target.value, i, j);
|
||||||
},
|
},
|
||||||
async importData() {
|
async importData() {
|
||||||
|
if (this.isMakingEntries || this.complete) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.isRequiredUnassigned) {
|
if (this.isRequiredUnassigned) {
|
||||||
showMessageDialog({
|
showMessageDialog({
|
||||||
message: this.t`Required Fields not Assigned`,
|
message: this.t`Required Fields not Assigned`,
|
||||||
@ -573,7 +577,7 @@ export default {
|
|||||||
this.importer = new Importer(this.labelDoctypeMap[this.importType]);
|
this.importer = new Importer(this.labelDoctypeMap[this.importType]);
|
||||||
},
|
},
|
||||||
setLoadingStatus(isMakingEntries, entriesMade, totalEntries) {
|
setLoadingStatus(isMakingEntries, entriesMade, totalEntries) {
|
||||||
this.openLoading = isMakingEntries;
|
this.isMakingEntries = isMakingEntries;
|
||||||
this.percentLoading = entriesMade / totalEntries;
|
this.percentLoading = entriesMade / totalEntries;
|
||||||
this.messageLoading = isMakingEntries
|
this.messageLoading = isMakingEntries
|
||||||
? `${entriesMade} entries made out of ${totalEntries}...`
|
? `${entriesMade} entries made out of ${totalEntries}...`
|
||||||
|
Loading…
Reference in New Issue
Block a user