Последняя версия с сервера прошлого разработчика
This commit is contained in:
25
nova/resources/js/mixins/HandlesUploads.js
vendored
Executable file
25
nova/resources/js/mixins/HandlesUploads.js
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
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++
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user