@fto-consult/expo-ui 6.90.1 → 6.90.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.90.1",
3
+ "version": "6.90.2",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {
@@ -361,15 +361,20 @@ export default class TableDataScreenComponent extends FormDataScreen{
361
361
  archivedPermsFilter : this.archivedPermsFilter.bind(this),
362
362
  onPressCopyToClipboard : this.copyToClipboard.bind(this)
363
363
  }
364
- if(isUpdated){
365
- fields.approved = this.isApprovable()? {
366
- text : 'Approuvé',
367
- type : 'switch',
368
- defaultValue : 0,
369
- checkedTooltip: 'Oui',
370
- disabled : Auth.isTableDataAllowed({table:tableName,action:'updateapproved'})? false:true,
371
- uncheckedTooltip : 'Non'
372
- } : null;
364
+ if(Object.size(fields,true)){
365
+ if(isUpdated){
366
+ fields.approved = this.isApprovable()? {
367
+ text : 'Approuvé',
368
+ type : 'switch',
369
+ defaultValue : 0,
370
+ checkedTooltip: 'Oui',
371
+ disabled : Auth.isTableDataAllowed({table:tableName,action:'updateapproved'})? false:true,
372
+ uncheckedTooltip : 'Non',
373
+ ...Object.assign({},fields.approved)
374
+ } : null;
375
+ }
376
+ } else {
377
+ formProps.style = [theme.styles.noPadding,formProps.style]
373
378
  }
374
379
  rActionsArg.contentProps = Object.assign({},customContentProps);
375
380
  rActionsArg.containerProps = Object.assign({},customContainerProps);