Skip to content

Commit

Permalink
AB#778: Hide parent Task Field if No Parent Task
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-simsoft committed Mar 3, 2023
1 parent 04dd2a4 commit 833b488
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions anet-dictionary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ fields:
parentTask:
label: Parent task
placeholder: Start typing to search for a higher level task
childTask:
label: Child task
placeholder: Start typing to search for a lower level task
taskedOrganizations:
label: Tasked organizations
placeholder: Search for an organization...
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/tasks/Show.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ const TaskShow = ({ pageDispatchers }) => {
)
}
/>
{Settings.fields.task.parentTask && (
{task.parentTask && task.parentTask.uuid && (
<TaskParentTask
dictProps={Settings.fields.task.parentTask}
name="parentTask"
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/anet-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,8 @@ properties:
"$ref": "#/$defs/inputField"
parentTask:
"$ref": "#/$defs/inputField"
childTask:
"$ref": "#/$defs/inputField"
taskedOrganizations:
"$ref": "#/$defs/inputField"
responsiblePositions:
Expand Down

0 comments on commit 833b488

Please sign in to comment.