diff --git a/src/front/Components/DesignSystem/DepositDocument/index.tsx b/src/front/Components/DesignSystem/DepositDocument/index.tsx index 14f55123..549d245c 100644 --- a/src/front/Components/DesignSystem/DepositDocument/index.tsx +++ b/src/front/Components/DesignSystem/DepositDocument/index.tsx @@ -86,6 +86,7 @@ export default class DepositDocument extends React.Component { this.addDocument = this.addDocument.bind(this); this.onFileChange = this.onFileChange.bind(this); + this.addFile = this.addFile.bind(this); this.removeFile = this.removeFile.bind(this); this.onDragOver = this.onDragOver.bind(this); this.onDragDrop = this.onDragDrop.bind(this); @@ -147,44 +148,42 @@ export default class DepositDocument extends React.Component { ))} - {this.props.document.document_status !== EDocumentStatus.VALIDATED && this.state.files.length > 0 && ( -
- {this.state.files.map((file) => { - const fileObj = file.file; - if (file.archived) return; - return ( -
-
- Document check - - {this.shortName(file.fileName || fileObj.name)} - -
- Cross icon -
- ); - })} - {this.state.loading && ( -
+
+ {this.state.files.map((file) => { + const fileObj = file.file; + if (file.archived) return; + return ( +
-
- -
- - Chargement... + Document check + + {this.shortName(file.fileName || fileObj.name)}
-
+ Cross icon
- )} -
- )} + ); + })} + {this.state.loading && ( +
+
+
+ +
+ + Chargement... + +
+
+
+ )} +
{this.props.document.document_status !== EDocumentStatus.VALIDATED && (