Skip to content

Commit

Permalink
Fixed #703 - PrimeVue FileUpload FileLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Nov 27, 2020
1 parent 67390c1 commit 655c376
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/fileupload/FileUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ export default {
}
},
duplicateIEEvent: false,
uploadedFileCount: 0,
data() {
return {
uploadedFileCount: 0,
files: null,
messages: null,
focused: false,
Expand Down Expand Up @@ -238,7 +238,7 @@ export default {
}
},
clear() {
this.files = null;
this.files = [];
this.messages = null;
this.$emit('clear');
Expand Down Expand Up @@ -348,11 +348,7 @@ export default {
},
checkFileLimit() {
if (this.isFileLimitExceeded()) {
this.msgs.push({
severity: 'error',
summary: this.invalidFileLimitMessageSummary.replace('{0}', this.fileLimit.toString()),
detail: this.invalidFileLimitMessageDetail.replace('{0}', this.fileLimit.toString())
});
this.msgs.push(this.invalidFileLimitMessage.replace('{0}', this.fileLimit.toString()));
}
}
},
Expand Down

0 comments on commit 655c376

Please sign in to comment.