Skip to content

Commit

Permalink
JNG-6009 readonly enum combo derived
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Nov 12, 2024
1 parent a79fafe commit 63cc336
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export default function ViewMatterForm(props: ViewMatterFormProps) {
disabled={actions?.isTypeDisabled ? actions.isTypeDisabled(data, editMode, isLoading) : isLoading}
readOnly={
(actions?.isTypeReadonly ? actions.isTypeReadonly(data, editMode, isLoading) : false) ||
false ||
!isFormUpdateable()
}
options={[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
autoHighlight
value={data.{{ child.attributeType.name }} || null}
disabled={actions?.is{{ firstToUpper child.attributeType.name }}Disabled ? actions.is{{ firstToUpper child.attributeType.name }}Disabled(data, editMode, isLoading) : ({{# if child.enabledBy }}!data.{{ child.enabledBy.name }} ||{{/ if }} isLoading)}
readOnly={(actions?.is{{ firstToUpper child.attributeType.name }}Readonly ? actions.is{{ firstToUpper child.attributeType.name }}Readonly(data, editMode, isLoading) : false) || !isFormUpdateable()}
readOnly={(actions?.is{{ firstToUpper child.attributeType.name }}Readonly ? actions.is{{ firstToUpper child.attributeType.name }}Readonly(data, editMode, isLoading) : false) || {{ boolValue child.attributeType.isReadOnly }} || !isFormUpdateable()}
options={[
...effective{{ firstToUpper child.attributeType.name }}Options.map((o) => ({
label: t(o.i18nKey, { defaultValue: o.i18nDefaultValue }),
Expand Down

0 comments on commit 63cc336

Please sign in to comment.