|
|
@@ -12,10 +12,10 @@ import WebsocketContainer from '../../services/WebsocketContainer';
|
|
|
|
|
|
import ProgressBar from './Common/ProgressBar';
|
|
|
|
|
|
-import ExportZipFormModal from './ExportData/ExportZipFormModal';
|
|
|
-import ZipFileTable from './ExportData/ZipFileTable';
|
|
|
+import SelectCollectionsModal from './ExportArchiveData/SelectCollectionsModal';
|
|
|
+import ArchiveFilesTable from './ExportArchiveData/ArchiveFilesTable';
|
|
|
|
|
|
-class ExportDataPage extends React.Component {
|
|
|
+class ExportArchiveDataPage extends React.Component {
|
|
|
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
@@ -87,7 +87,7 @@ class ExportDataPage extends React.Component {
|
|
|
});
|
|
|
|
|
|
// TODO: toastSuccess, toastError
|
|
|
- toastr.success(undefined, `New Exported Data '${addedZipFileStat.fileName}' is added`, {
|
|
|
+ toastr.success(undefined, `New Archive Data '${addedZipFileStat.fileName}' is added`, {
|
|
|
closeButton: true,
|
|
|
progressBar: true,
|
|
|
newestOnTop: false,
|
|
|
@@ -202,15 +202,15 @@ class ExportDataPage extends React.Component {
|
|
|
|
|
|
return (
|
|
|
<Fragment>
|
|
|
- <h2>{t('Export Data')}</h2>
|
|
|
+ <h2>{t('Export Archive Data')}</h2>
|
|
|
|
|
|
<button type="button" className="btn btn-default" disabled={isExporting} onClick={this.openExportModal}>
|
|
|
- {t('export_management.create_new_exported_data')}
|
|
|
+ {t('export_management.create_new_archive_data')}
|
|
|
</button>
|
|
|
|
|
|
{ showExportingData && (
|
|
|
<div className="mt-5">
|
|
|
- <h3>{t('export_management.exporting_data_list')}</h3>
|
|
|
+ <h3>{t('export_management.exporting_collection_list')}</h3>
|
|
|
{ this.renderProgressBarsForCollections() }
|
|
|
{ this.renderProgressBarForZipping() }
|
|
|
</div>
|
|
|
@@ -218,13 +218,13 @@ class ExportDataPage extends React.Component {
|
|
|
|
|
|
<div className="mt-5">
|
|
|
<h3>{t('export_management.exported_data_list')}</h3>
|
|
|
- <ZipFileTable
|
|
|
+ <ArchiveFilesTable
|
|
|
zipFileStats={this.state.zipFileStats}
|
|
|
onZipFileStatRemove={this.onZipFileStatRemove}
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
|
- <ExportZipFormModal
|
|
|
+ <SelectCollectionsModal
|
|
|
isOpen={this.state.isExportModalOpen}
|
|
|
onExportingRequested={this.exportingRequestedHandler}
|
|
|
onClose={this.closeExportModal}
|
|
|
@@ -236,7 +236,7 @@ class ExportDataPage extends React.Component {
|
|
|
|
|
|
}
|
|
|
|
|
|
-ExportDataPage.propTypes = {
|
|
|
+ExportArchiveDataPage.propTypes = {
|
|
|
t: PropTypes.func.isRequired, // i18next
|
|
|
appContainer: PropTypes.instanceOf(AppContainer).isRequired,
|
|
|
websocketContainer: PropTypes.instanceOf(WebsocketContainer).isRequired,
|
|
|
@@ -245,8 +245,8 @@ ExportDataPage.propTypes = {
|
|
|
/**
|
|
|
* Wrapper component for using unstated
|
|
|
*/
|
|
|
-const ExportDataPageFormWrapper = (props) => {
|
|
|
- return createSubscribedElement(ExportDataPage, props, [AppContainer, WebsocketContainer]);
|
|
|
+const ExportArchiveDataPageWrapper = (props) => {
|
|
|
+ return createSubscribedElement(ExportArchiveDataPage, props, [AppContainer, WebsocketContainer]);
|
|
|
};
|
|
|
|
|
|
-export default withTranslation()(ExportDataPageFormWrapper);
|
|
|
+export default withTranslation()(ExportArchiveDataPageWrapper);
|