@commercetools-frontend-extensions/export-resources-modal 4.7.0 → 4.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -393,7 +393,7 @@ var messages = reactIntl.defineMessages({
|
|
|
393
393
|
fillRowsForOrderExport: {
|
|
394
394
|
id: 'ExportResourcesModal.fillRowsForOrderExport',
|
|
395
395
|
description: 'A checkbox label for filling rows for order export',
|
|
396
|
-
defaultMessage: '
|
|
396
|
+
defaultMessage: 'Include Order number, id, and states in every row'
|
|
397
397
|
}
|
|
398
398
|
});
|
|
399
399
|
|
|
@@ -1286,7 +1286,8 @@ const ExportFileSettingsStep = () => {
|
|
|
1286
1286
|
locales = _useApplicationContex.locales,
|
|
1287
1287
|
locale = _useApplicationContex.locale;
|
|
1288
1288
|
const areAllLocalesChecked = _valuesInstanceProperty__default["default"](formik).locales.length === locales.length;
|
|
1289
|
-
|
|
1289
|
+
// TODO: make this dynamic based on the resource type & output format (more scalable)
|
|
1290
|
+
const shouldShowPreferences = _includesInstanceProperty__default["default"](_context = ['order']).call(_context, resourceType) && _valuesInstanceProperty__default["default"](formik).outputFormat === 'csv';
|
|
1290
1291
|
return jsxRuntime.jsx(applicationComponents.FormDialog, {
|
|
1291
1292
|
isOpen: true,
|
|
1292
1293
|
title: intl.formatMessage(messages[`modalTitle.${resourceType}`]),
|
|
@@ -393,7 +393,7 @@ var messages = reactIntl.defineMessages({
|
|
|
393
393
|
fillRowsForOrderExport: {
|
|
394
394
|
id: 'ExportResourcesModal.fillRowsForOrderExport',
|
|
395
395
|
description: 'A checkbox label for filling rows for order export',
|
|
396
|
-
defaultMessage: '
|
|
396
|
+
defaultMessage: 'Include Order number, id, and states in every row'
|
|
397
397
|
}
|
|
398
398
|
});
|
|
399
399
|
|
|
@@ -1286,7 +1286,8 @@ const ExportFileSettingsStep = () => {
|
|
|
1286
1286
|
locales = _useApplicationContex.locales,
|
|
1287
1287
|
locale = _useApplicationContex.locale;
|
|
1288
1288
|
const areAllLocalesChecked = _valuesInstanceProperty__default["default"](formik).locales.length === locales.length;
|
|
1289
|
-
|
|
1289
|
+
// TODO: make this dynamic based on the resource type & output format (more scalable)
|
|
1290
|
+
const shouldShowPreferences = _includesInstanceProperty__default["default"](_context = ['order']).call(_context, resourceType) && _valuesInstanceProperty__default["default"](formik).outputFormat === 'csv';
|
|
1290
1291
|
return jsxRuntime.jsx(applicationComponents.FormDialog, {
|
|
1291
1292
|
isOpen: true,
|
|
1292
1293
|
title: intl.formatMessage(messages[`modalTitle.${resourceType}`]),
|
|
@@ -355,7 +355,7 @@ var messages = defineMessages({
|
|
|
355
355
|
fillRowsForOrderExport: {
|
|
356
356
|
id: 'ExportResourcesModal.fillRowsForOrderExport',
|
|
357
357
|
description: 'A checkbox label for filling rows for order export',
|
|
358
|
-
defaultMessage: '
|
|
358
|
+
defaultMessage: 'Include Order number, id, and states in every row'
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
361
|
|
|
@@ -1248,7 +1248,8 @@ const ExportFileSettingsStep = () => {
|
|
|
1248
1248
|
locales = _useApplicationContex.locales,
|
|
1249
1249
|
locale = _useApplicationContex.locale;
|
|
1250
1250
|
const areAllLocalesChecked = _valuesInstanceProperty(formik).locales.length === locales.length;
|
|
1251
|
-
|
|
1251
|
+
// TODO: make this dynamic based on the resource type & output format (more scalable)
|
|
1252
|
+
const shouldShowPreferences = _includesInstanceProperty(_context = ['order']).call(_context, resourceType) && _valuesInstanceProperty(formik).outputFormat === 'csv';
|
|
1252
1253
|
return jsx(FormDialog, {
|
|
1253
1254
|
isOpen: true,
|
|
1254
1255
|
title: intl.formatMessage(messages[`modalTitle.${resourceType}`]),
|
package/package.json
CHANGED