listener for max files reached is added to akaunting dropzone
This commit is contained in:
parent
13467852cd
commit
5527532e9a
@ -118,10 +118,17 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.$emit('change', self.files);
|
self.$emit('change', self.files);
|
||||||
|
|
||||||
|
if(self.isPreviewSingle == false)
|
||||||
|
this.enable()
|
||||||
}),
|
}),
|
||||||
this.on("maxfilesexceeded", function(file) {
|
this.on("maxfilesexceeded", function(file) {
|
||||||
this.removeAllFiles('notCancel');
|
this.removeAllFiles('notCancel');
|
||||||
this.addFile(file);
|
this.addFile(file);
|
||||||
|
}),
|
||||||
|
this.on("maxfilesreached", function(file) {
|
||||||
|
if(self.isPreviewSingle == false)
|
||||||
|
this.disable()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user