Skip to content

Commit

Permalink
fix(item): required and hide on expression
Browse files Browse the repository at this point in the history
Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr committed Mar 13, 2024
1 parent 3366da2 commit aa30131
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rero_ils/modules/items/jsonschemas/items/item-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
"pid",
"organisation",
"library",
"location",
"item_type",
"type",
"document",
"status"
Expand Down Expand Up @@ -145,7 +143,8 @@
"widget": {
"formlyConfig": {
"expressions": {
"hide": "field?.parent?.model && field.parent.model.type === 'issue'"
"props.required": "field?.parent?.model?.type !== 'issue'",
"hide": "field?.parent?.model?.type === 'issue'"
},
"props": {
"cssClass": "editor-title"
Expand Down Expand Up @@ -191,7 +190,8 @@
"widget": {
"formlyConfig": {
"expressions": {
"hide": "field?.parent?.model && field.parent.model.type === 'issue'"
"props.required": "field?.parent?.model?.type !== 'issue'",
"hide": "field?.parent?.model?.type === 'issue'"
},
"props": {
"cssClass": "editor-title"
Expand Down

0 comments on commit aa30131

Please sign in to comment.