@fto-consult/expo-ui 6.72.0 → 6.72.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.
package/package.json
CHANGED
@@ -318,14 +318,14 @@ export default class TableDataScreenComponent extends FormDataScreen{
|
|
318
318
|
isUpdated,
|
319
319
|
fields,
|
320
320
|
});
|
321
|
-
const cCloneAction = this.isClonable() && this.canCreateNew() && clonable !== false
|
321
|
+
const cCloneAction = this.isClonable() && this.canCreateNew() && clonable !== false && cloneAction !== false && true || false;
|
322
322
|
const rActionsArg = this.currentRenderingProps = {
|
323
323
|
...rest,
|
324
324
|
...formProps,
|
325
325
|
context,
|
326
326
|
cloneAction : cCloneAction,
|
327
327
|
save2newAction : this.canCreateNew() && save2newAction !== false ? true : false,
|
328
|
-
save2cloneAction :
|
328
|
+
save2cloneAction : cCloneAction && save2cloneAction !== false ? true : false,
|
329
329
|
isMobile : isMobOrTab,
|
330
330
|
saveAction,
|
331
331
|
save2closeAction,
|
@@ -126,17 +126,17 @@ export function renderActions({context,isUpdate,newElementLabel,readablePerms:c
|
|
126
126
|
flat : true,
|
127
127
|
onPress : createCallback({context:self,action:'save2close',callback:onPressToSave})
|
128
128
|
}, save2new = (save2newAction !== false && !readOnly && permsObj.canSave2New && !hasManyData)?{
|
129
|
-
text : textSave+'& '+newElementLabel,
|
130
|
-
title : textSave+'& '+newElementLabel,
|
129
|
+
text : textSave+' & '+newElementLabel,
|
130
|
+
title : textSave+' & '+newElementLabel,
|
131
131
|
isAction : true,
|
132
132
|
shortcut : "save2new",
|
133
133
|
icon : 'content-save-edit',
|
134
134
|
flat : true,
|
135
135
|
onPress : createCallback({context:self,action:'save2new',callback:onPressToSave})
|
136
136
|
} : null
|
137
|
-
,save2clone = (save2cloneAction !== false && cloneAction !== false && !readOnly &&
|
138
|
-
text : textSave+'& Dupliquer',
|
139
|
-
title : textSave+'& Dupliquer',
|
137
|
+
,save2clone = (save2cloneAction !== false && cloneAction !== false && !readOnly && permsObj.canSave && permsObj.canCreate)?{
|
138
|
+
text : textSave+' & Dupliquer',
|
139
|
+
title : textSave+' & Dupliquer',
|
140
140
|
isAction : true,
|
141
141
|
shortcut : "save2clone",
|
142
142
|
icon : 'content-save-move',
|