tuain-ng-forms-lib 14.4.90 → 14.4.91
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.
|
@@ -1988,7 +1988,7 @@ class FormStructureAndData {
|
|
|
1988
1988
|
if (definitionReceived.actions) {
|
|
1989
1989
|
const formActions = definitionReceived.actions.map(objDef => {
|
|
1990
1990
|
let visibleStates = objDef.visibleStates;
|
|
1991
|
-
let enabledStates = objDef.enabledStates;
|
|
1991
|
+
let enabledStates = objDef.enabledStates ?? objDef.editableStates;
|
|
1992
1992
|
if (!visibleStates) {
|
|
1993
1993
|
visibleStates = (objDef.actionModes || '').split(',')
|
|
1994
1994
|
.map(state => state.trim())
|