listener for max files reached is added to akaunting dropzone

This commit is contained in:
Sevan Nerse 2021-01-18 14:23:10 +03:00
parent 13467852cd
commit 5527532e9a

View File

@ -118,10 +118,17 @@ export default {
}
self.$emit('change', self.files);
if(self.isPreviewSingle == false)
this.enable()
}),
this.on("maxfilesexceeded", function(file) {
this.removeAllFiles('notCancel');
this.addFile(file);
}),
this.on("maxfilesreached", function(file) {
if(self.isPreviewSingle == false)
this.disable()
})
}
};