26 lines
481 B
JavaScript
Executable File
Vendored
26 lines
481 B
JavaScript
Executable File
Vendored
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++
|
|
},
|
|
},
|
|
}
|