Skip to content

Commit

Permalink
[frontend] max shareable markings in group overview (#7006)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archidoit committed May 27, 2024
1 parent 243ce52 commit 15cfcd7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,30 @@ const Group = ({ groupData }: { groupData: Group_group$key }) => {
</List>
</FieldOrEmpty>
</Grid>
<Grid item={true} xs={6}>
<Grid item={true} xs={12}>
<Typography
variant="h3"
gutterBottom={true}
style={{ float: 'left' }}
>
{t_i18n('Max Confidence Level')}
</Typography>
<div className="clearfix"/>
<GroupConfidenceLevel
confidenceLevel={group.group_confidence_level}
/>
</Grid>
</Grid>
</Paper>
</Grid>
<Grid item={true} xs={12} style={{ marginTop: 30 }}>
<Typography variant="h4" gutterBottom={true} style={{ float: 'left' }}>
{t_i18n('Markings')}
</Typography>
<div className="clearfix" />
<Paper classes={{ root: classes.paper }} variant="outlined">
<Grid container={true} spacing={3}>
<Grid item={true} xs={4}>
<Typography variant="h3" gutterBottom={true}>
{t_i18n('Default markings')}
<Tooltip
Expand Down Expand Up @@ -300,7 +323,7 @@ const Group = ({ groupData }: { groupData: Group_group$key }) => {
</List>
</FieldOrEmpty>
</Grid>
<Grid item={true} xs={6}>
<Grid item={true} xs={4}>
<Typography variant="h3" gutterBottom={true}>
{t_i18n('Allowed markings')}
</Typography>
Expand All @@ -327,20 +350,7 @@ const Group = ({ groupData }: { groupData: Group_group$key }) => {
</List>
</FieldOrEmpty>
</Grid>
<Grid item={true} xs={12}>
<Typography
variant="h3"
gutterBottom={true}
style={{ float: 'left' }}
>
{t_i18n('Max Confidence Level')}
</Typography>
<div className="clearfix"/>
<GroupConfidenceLevel
confidenceLevel={group.group_confidence_level}
/>
</Grid>
<Grid item={true} xs={12}>
<Grid item={true} xs={4}>
<Typography variant="h3" gutterBottom={true}>
{t_i18n('Maximum shareable markings')}
</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ const GroupEditionMarkingsComponent = ({
</Alert>
<Field
component={MarkingsSelectField}
markingDefinitions={markingDefinitions}
markingDefinitions={resolvedGroupMarkingDefinitions}
name="shareableMarkings"
onChange={(markingIds: string[]) => handleToggleMarkingIds('max_shareable_markings_ids', markingIds)}
/>
Expand Down

0 comments on commit 15cfcd7

Please sign in to comment.