Files
online.tbbank.gov.tm-larave…/nova/resources/js/mixins/HandlesUploads.js
2024-09-01 18:54:23 +05:00

26 lines
481 B
JavaScript

export default {
data: () => ({ isWorking: false, fileUploadsCount: 0 }),
methods: {
/**
* Handle file upload finishing
*/
handleFileUploadFinished() {
this.fileUploadsCount--
if (this.fileUploadsCount < 1) {
this.fileUploadsCount = 0
this.isWorking = false
}
},
/**
* Handle file upload starting
*/
handleFileUploadStarted() {
this.isWorking = true
this.fileUploadsCount++
},
},
}