Skip to content

Commit

Permalink
Merge pull request #633 from AFP-Medialab/pre-master
Browse files Browse the repository at this point in the history
Changed permission for resizing feature
  • Loading branch information
Sallaa authored Oct 30, 2024
2 parents b8175fe + dd6e9ad commit 3283a7c
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions src/components/NavItems/tools/SyntheticImageDetection/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,23 +414,21 @@ const SyntheticImageDetection = () => {
/>
</form>

{(role.includes(ROLES.EXTRA_FEATURE) ||
role.includes(ROLES.EVALUATION)) &&
imageFile && (
<FormGroup>
<FormControlLabel
control={
<Switch
checked={autoResizeLocalFile}
onChange={toggleAutoResizeLocalFile}
size="small"
disabled={isLoading}
/>
}
label="Auto-Resize"
/>
</FormGroup>
)}
{role.includes(ROLES.BETA_TESTER) && imageFile && (
<FormGroup>
<FormControlLabel
control={
<Switch
checked={autoResizeLocalFile}
onChange={toggleAutoResizeLocalFile}
size="small"
disabled={isLoading}
/>
}
label="Auto-Resize"
/>
</FormGroup>
)}

{isLoading && (
<Box mt={3}>
Expand Down

0 comments on commit 3283a7c

Please sign in to comment.