Skip to content
Snippets Groups Projects
Commit 341c76f8 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-13463 : Export selection of fields from tables - UI part - add messages...

SSDM-13463 : Export selection of fields from tables - UI part - add messages explaining chosen "Import Compatible" options
parent f22b5787
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -91,6 +91,8 @@ const keys = {
EXECUTE: 'EXECUTE',
EXPORT: 'EXPORT',
EXPORT_PLAIN_TEXT_WARNING: 'EXPORT_PLAIN_TEXT_WARNING',
EXPORT_IMPORT_COMPATIBLE_INFO: 'EXPORT_IMPORT_COMPATIBLE_INFO',
EXPORT_IMPORT_INCOMPATIBLE_INFO: 'EXPORT_IMPORT_INCOMPATIBLE_INFO',
EXPORTS: 'EXPORTS',
FAIL_IF_EXISTS: 'FAIL_IF_EXISTS',
FILTER: 'FILTER',
......@@ -386,6 +388,8 @@ const messages_en = {
[keys.EXECUTE]: 'Execute',
[keys.EXPORT]: 'Export',
[keys.EXPORT_PLAIN_TEXT_WARNING]: 'All formatting gets lost.',
[keys.EXPORT_IMPORT_COMPATIBLE_INFO]: 'The system will add required columns and remove incompatible columns.',
[keys.EXPORT_IMPORT_INCOMPATIBLE_INFO]: 'The system will export selected columns.',
[keys.EXPORTS]: 'Exports',
[keys.FAIL_IF_EXISTS]: 'Fail if exists',
[keys.FILTER]: 'Filter',
......
......@@ -227,6 +227,20 @@ class GridExports extends React.PureComponent {
/>
</div>
)}
{isXLSExport && exportOptions.importCompatible === true && (
<div className={classes.field}>
<Message type='info'>
{messages.get(messages.EXPORT_IMPORT_COMPATIBLE_INFO)}
</Message>
</div>
)}
{isXLSExport && exportOptions.importCompatible === false && (
<div className={classes.field}>
<Message type='info'>
{messages.get(messages.EXPORT_IMPORT_INCOMPATIBLE_INFO)}
</Message>
</div>
)}
<div className={classes.field}>
<SelectField
label={messages.get(messages.COLUMNS)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment