fileupload filelimit warns
parent
f5434c89a5
commit
37dd3c4a5e
|
@ -119,11 +119,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicateIEEvent: false,
|
duplicateIEEvent: false,
|
||||||
uploadedFileCount: 0,
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
files: null,
|
uploadedFileCount: 0,
|
||||||
messages: null,
|
files: [],
|
||||||
|
messages: [],
|
||||||
focused: false,
|
focused: false,
|
||||||
progress: null
|
progress: null
|
||||||
}
|
}
|
||||||
|
@ -239,7 +239,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clear() {
|
clear() {
|
||||||
this.files = null;
|
this.files = [];
|
||||||
this.messages = null;
|
this.messages = null;
|
||||||
this.$emit('clear');
|
this.$emit('clear');
|
||||||
|
|
||||||
|
@ -349,11 +349,7 @@ export default {
|
||||||
},
|
},
|
||||||
checkFileLimit() {
|
checkFileLimit() {
|
||||||
if (this.isFileLimitExceeded()) {
|
if (this.isFileLimitExceeded()) {
|
||||||
this.msgs.push({
|
this.messages.push(this.invalidFileLimitMessage.replace('{0}', this.fileLimit.toString()))
|
||||||
severity: 'error',
|
|
||||||
summary: this.invalidFileLimitMessageSummary.replace('{0}', this.fileLimit.toString()),
|
|
||||||
detail: this.invalidFileLimitMessageDetail.replace('{0}', this.fileLimit.toString())
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue