Skip to content

Commit

Permalink
Merge pull request #1006 from AI4Bharat/clearChildren
Browse files Browse the repository at this point in the history
added clear children button
  • Loading branch information
ishvindersethi22 authored Apr 18, 2024
2 parents 6e8fd10 + 080a9e5 commit e52adaa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/pages/container/Label-Studio/LSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@ const LabelStudioWrapper = ({
<div style={{ minWidth: "160px" }} />
)} */}
</Grid>
{ProjectDetails?.project_type?.includes("OCRSegmentCategorization") &&
<Grid item>
<Tooltip title="Clear all children bboxes">
<Button
Expand All @@ -1117,6 +1118,7 @@ const LabelStudioWrapper = ({
</Button>
</Tooltip>
</Grid>
}
</Grid>
</div>
)}
Expand Down
2 changes: 2 additions & 0 deletions src/ui/pages/container/Label-Studio/ReviewLSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,7 @@ useEffect(() => {
</Button>
</Tooltip>
)}
{ProjectDetails?.project_type?.includes("OCRSegmentCategorization") &&
<Tooltip title="Clear all children bboxes">
<Button
type="default"
Expand All @@ -1349,6 +1350,7 @@ useEffect(() => {
Clear Child BBoxes
</Button>
</Tooltip>
}
<StyledMenu
id="accept-menu"
MenuListProps={{
Expand Down
2 changes: 2 additions & 0 deletions src/ui/pages/container/Label-Studio/SuperCheckerLSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,7 @@ useEffect(() => {
</Button>
</Tooltip>
)}
{ProjectDetails?.project_type?.includes("OCRSegmentCategorization") &&
<Tooltip title="Clear all children bboxes">
<Button
type="default"
Expand All @@ -1096,6 +1097,7 @@ useEffect(() => {
Clear Child BBoxes
</Button>
</Tooltip>
}
<StyledMenu
id="accept-menu"
MenuListProps={{
Expand Down

0 comments on commit e52adaa

Please sign in to comment.