Make form block view readonly

This commit is contained in:
Mel O'Hagan 2023-11-01 16:40:23 +00:00
parent 33e37261b2
commit 5923ae2983
3 changed files with 4 additions and 8 deletions

View File

@ -56,7 +56,7 @@
easyMDEOptions={{
initialValue: value,
placeholder,
toolbar: readonly ? false : undefined,
toolbar: disabled || readonly ? false : undefined,
...easyMDEOptions,
}}
/>

View File

@ -5640,12 +5640,7 @@
"type": "boolean",
"label": "Disabled",
"key": "disabled",
"defaultValue": false,
"dependsOn": {
"setting": "actionType",
"value": "View",
"invert": true
}
"defaultValue": false
}
]
},

View File

@ -136,7 +136,8 @@
actionType: actionType === "Create" ? "Create" : "Update",
dataSource,
size,
disabled: disabled || actionType === "View",
disabled,
readonly: !disabled && actionType === "View",
}}
styles={{
normal: {