app/views/modals/evidence-portal-modal.js
Function addFiles
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addFiles: function(files) {
var documentsToUpload = this.get('documentsToUpload');
var errorCount = 0;
_.each(files, function(file) {
Function save
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
save: function() {
this.get('model').validate();
if (this.get('model').get("isValid")) {
var formData = new FormData();
formData.append('note', this.get('model.note'));