- added setting enabling table in CSV report;
This commit is contained in:
@@ -54,6 +54,7 @@ const BuilderElementSettings = ({ closeSettingsFn, callStatus, context }) => {
|
||||
});
|
||||
|
||||
setSettings(newSettings);
|
||||
storeSet('chosenFieldSettings', newSettings);
|
||||
}
|
||||
|
||||
const onUpdateOptions = (name, value) => {
|
||||
@@ -67,6 +68,7 @@ const BuilderElementSettings = ({ closeSettingsFn, callStatus, context }) => {
|
||||
});
|
||||
|
||||
setSettings(newSettings);
|
||||
storeSet('chosenFieldSettings', newSettings);
|
||||
}
|
||||
|
||||
const saveSettings = () => {
|
||||
@@ -131,6 +133,7 @@ const BuilderElementSettings = ({ closeSettingsFn, callStatus, context }) => {
|
||||
if (chosen) {
|
||||
setActiveElementData(klona(chosen));
|
||||
setSettings(settings);
|
||||
storeSet('chosenFieldSettings', settings);
|
||||
setValidators(klona(chosen.validators));
|
||||
setDynamicData(chosen.dynamicData ? chosen.dynamicData : '');
|
||||
setCriteria(chosen.criteria ? chosen.criteria : []);
|
||||
@@ -150,7 +153,9 @@ const BuilderElementSettings = ({ closeSettingsFn, callStatus, context }) => {
|
||||
<TabPanel header={__('Presentation', 'gepafin')}>
|
||||
{settings
|
||||
? settings
|
||||
.filter(o => !['variable', 'formula', 'reportEnable', 'reportHeader'].includes(o.name))
|
||||
.filter(o => ![
|
||||
'variable', 'formula', 'reportEnable', 'reportHeader', 'reportColumns'
|
||||
].includes(o.name))
|
||||
.map((o) => <ElementSetting
|
||||
key={o.name}
|
||||
setting={o}
|
||||
@@ -259,7 +264,7 @@ const BuilderElementSettings = ({ closeSettingsFn, callStatus, context }) => {
|
||||
<TabPanel header={__('Rapporto CSV', 'gepafin')}>
|
||||
{settings
|
||||
? settings
|
||||
.filter(o => ['reportEnable', 'reportHeader'].includes(o.name))
|
||||
.filter(o => ['reportEnable', 'reportHeader', 'reportColumns'].includes(o.name))
|
||||
.map((o) => <ElementSetting
|
||||
key={o.name}
|
||||
setting={o}
|
||||
|
||||
Reference in New Issue
Block a user