@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
@@ -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(
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
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);
|