@@ -88,6 +89,16 @@ const FilesTable = ({
}
}
+ {downloadArchive &&
+
+
+
}
;
@@ -113,7 +124,8 @@ FilesTable.propTypes = {
RowComponent: PropTypes.func.isRequired,
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired,
isOpen: PropTypes.bool,
- viewOnly: PropTypes.bool
+ viewOnly: PropTypes.bool,
+ downloadArchive: PropTypes.func
};
export default injectIntl(FilesTable);
diff --git a/src/containers/AttachmentFilesTableContainer/AttachmentFilesTableContainer.js b/src/containers/AttachmentFilesTableContainer/AttachmentFilesTableContainer.js
index 558a40c9c..a6cec0d02 100644
--- a/src/containers/AttachmentFilesTableContainer/AttachmentFilesTableContainer.js
+++ b/src/containers/AttachmentFilesTableContainer/AttachmentFilesTableContainer.js
@@ -13,7 +13,8 @@ import {
import {
fetchAttachmentFiles,
addAttachmentFiles,
- removeAttachmentFile
+ removeAttachmentFile,
+ downloadAttachmentArchive
} from '../../redux/modules/attachmentFiles';
import { createGetAttachmentFiles } from '../../redux/selectors/attachmentFiles';
@@ -23,7 +24,8 @@ const AttachmentFilesTableContainer = ({
attachmentFiles,
loadFiles,
addFiles,
- removeFile
+ removeFile,
+ downloadArchive
}) =>