Skip to content

Commit

Permalink
Merge pull request #1007 from AI4Bharat/clearChildren
Browse files Browse the repository at this point in the history
changed clear mergings color to red
  • Loading branch information
aparna-aa authored Apr 19, 2024
2 parents 5faf58d + 55401d2 commit 9699f23
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
15 changes: 7 additions & 8 deletions src/ui/pages/container/Label-Studio/LSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ const LabelStudioWrapper = ({
className="lsf-controls"
>
<div />
<Grid container spacing={0}>
<Grid container justifyContent="space-between">
<Grid item>
<LightTooltip title={assignedUsers ? assignedUsers : ""}>
<Button
Expand All @@ -1047,9 +1047,7 @@ const LabelStudioWrapper = ({
/>
</Button>
</LightTooltip>
</Grid>
{/* <Grid container spacing={0} sx={{ justifyContent: "end" }}> */}
<Grid item>
{taskData?.annotation_users?.some(
(user) => user === userData.id
) &&
Expand All @@ -1073,8 +1071,6 @@ const LabelStudioWrapper = ({
</Button>
</Tooltip>
)}
</Grid>
<Grid item>
{/* {localStorage.getItem("labelAll") === "true" ? ( */}
<Tooltip title="Go to next task">
<Button
Expand All @@ -1098,8 +1094,9 @@ const LabelStudioWrapper = ({
<div style={{ minWidth: "160px" }} />
)} */}
</Grid>
{ProjectDetails?.project_type?.includes("OCRSegmentCategorization") &&
<Grid item>
{ProjectDetails?.project_type?.includes("OCR") &&
<>
<Grid item >
<Tooltip title="Clear all children bboxes">
<Button
type="default"
Expand All @@ -1111,13 +1108,15 @@ const LabelStudioWrapper = ({
pt: 3,
pb: 3,
borderBottom: "None",
color: "#f00",
}}
className="lsf-button"
>
Clear Child BBoxes
Clear All Mergings
</Button>
</Tooltip>
</Grid>
</>
}
</Grid>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/ui/pages/container/Label-Studio/ReviewLSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ useEffect(() => {
</Button>
</Tooltip>
)}
{ProjectDetails?.project_type?.includes("OCRSegmentCategorization") &&
{ProjectDetails?.project_type?.includes("OCR") &&
<Tooltip title="Clear all children bboxes">
<Button
type="default"
Expand All @@ -1344,10 +1344,11 @@ useEffect(() => {
pt: 3,
pb: 3,
borderBottom: "None",
color: "#f00",
}}
className="lsf-button"
>
Clear Child BBoxes
Clear All Mergings
</Button>
</Tooltip>
}
Expand Down
5 changes: 3 additions & 2 deletions src/ui/pages/container/Label-Studio/SuperCheckerLSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ useEffect(() => {
</Button>
</Tooltip>
)}
{ProjectDetails?.project_type?.includes("OCRSegmentCategorization") &&
{ProjectDetails?.project_type?.includes("OCR") &&
<Tooltip title="Clear all children bboxes">
<Button
type="default"
Expand All @@ -1091,10 +1091,11 @@ useEffect(() => {
pt: 3,
pb: 3,
borderBottom: "None",
color: "#f00",
}}
className="lsf-button"
>
Clear Child BBoxes
Clear All Mergings
</Button>
</Tooltip>
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/pages/container/Label-Studio/labelConfigJSX.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ export const labelConfigJS = `<View>
</Labels>
<Rectangle name="annotation_bboxes" toName="image_url" strokeWidth="3" className="ignore_assertion"/>
<Relations>
<Relation value="continues-to" selected="true"/>
<Relation value="c" selected="true"/>
</Relations>
</View>`;

0 comments on commit 9699f23

Please sign in to comment.