mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-18 02:41:14 +08:00
Fix file uploading for unlimited storage [SCI-7105]
This commit is contained in:
parent
bf6375aee6
commit
96d52254c3
1 changed files with 4 additions and 1 deletions
|
@ -45,7 +45,10 @@ export default {
|
|||
return;
|
||||
}
|
||||
|
||||
if (this.step.attributes.storage_limit && (this.step.attributes.storage_limit.used >= this.step.attributes.storage_limit.total)) {
|
||||
const storageLimit = this.step.attributes.storage_limit &&
|
||||
this.step.attributes.storage_limit.total > 0 &&
|
||||
this.step.attributes.storage_limit.used >= this.step.attributes.storage_limit.total;
|
||||
if (storageLimit) {
|
||||
fileObject.error = I18n.t('protocols.steps.attachments.new.no_more_space');
|
||||
this.attachments.push(fileObject);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue