Make form block view readonly
This commit is contained in:
parent
33e37261b2
commit
5923ae2983
|
@ -56,7 +56,7 @@
|
|||
easyMDEOptions={{
|
||||
initialValue: value,
|
||||
placeholder,
|
||||
toolbar: readonly ? false : undefined,
|
||||
toolbar: disabled || readonly ? false : undefined,
|
||||
...easyMDEOptions,
|
||||
}}
|
||||
/>
|
||||
|
|
|
@ -5640,12 +5640,7 @@
|
|||
"type": "boolean",
|
||||
"label": "Disabled",
|
||||
"key": "disabled",
|
||||
"defaultValue": false,
|
||||
"dependsOn": {
|
||||
"setting": "actionType",
|
||||
"value": "View",
|
||||
"invert": true
|
||||
}
|
||||
"defaultValue": false
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -136,7 +136,8 @@
|
|||
actionType: actionType === "Create" ? "Create" : "Update",
|
||||
dataSource,
|
||||
size,
|
||||
disabled: disabled || actionType === "View",
|
||||
disabled,
|
||||
readonly: !disabled && actionType === "View",
|
||||
}}
|
||||
styles={{
|
||||
normal: {
|
||||
|
|
Loading…
Reference in New Issue