Skip to content

Commit

Permalink
[frontend] enable to share inferred relationships with organizations …
Browse files Browse the repository at this point in the history
…in ui (#7543)
  • Loading branch information
Archidoit committed Jul 4, 2024
1 parent c317384 commit 60e5ba3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,6 @@ class StixCoreRelationshipContainer extends Component {
<Grid item={true} xs={6}>
<StixCoreRelationshipSharing
elementId={stixCoreRelationship.id}
disabled={
stixCoreRelationship.x_opencti_inferences !== null
}
/>
<Typography
variant="h3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import type { Theme } from '../../../../components/Theme';
// region types
interface ContainerHeaderSharedProps {
elementId: string;
disabled: boolean;
}

interface OrganizationForm {
Expand Down Expand Up @@ -96,7 +95,7 @@ const containerHeaderSharedGroupAddMutation = graphql`

const StixCoreRelationshipSharing: FunctionComponent<
ContainerHeaderSharedProps
> = ({ elementId, disabled }) => {
> = ({ elementId }) => {
const classes = useStyles();
const { t_i18n } = useFormatter();
const [displaySharing, setDisplaySharing] = useState(false);
Expand Down Expand Up @@ -159,7 +158,6 @@ ContainerHeaderSharedProps
onClick={isEnterpriseEdition ? handleOpenSharing : () => {}}
style={{ float: 'left', margin: '-6px 0 0 3px' }}
size="small"
disabled={disabled}
>
<BankPlus fontSize="small" color={isEnterpriseEdition ? 'primary' : 'disabled'} />
</IconButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,6 @@ class StixSightingRelationshipContainer extends Component {
<div>
<StixSightingRelationshipSharing
elementId={stixSightingRelationship.id}
disabled={
stixSightingRelationship.x_opencti_inferences !== null
}
/>
<Typography
variant="h3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import Transition from '../../../../components/Transition';
interface ContainerHeaderSharedProps {
elementId: string;
variant: string;
disabled: boolean;
}

interface OrganizationForm {
Expand Down Expand Up @@ -97,7 +96,7 @@ const containerHeaderSharedGroupAddMutation = graphql`

const StixSightingRelationshipSharing: FunctionComponent<
ContainerHeaderSharedProps
> = ({ elementId, disabled }) => {
> = ({ elementId }) => {
const classes = useStyles();
const { t_i18n } = useFormatter();
const [displaySharing, setDisplaySharing] = useState(false);
Expand Down Expand Up @@ -161,7 +160,6 @@ ContainerHeaderSharedProps
onClick={isEnterpriseEdition ? handleOpenSharing : () => {}}
style={{ float: 'left', margin: '-6px 0 0 3px' }}
size="small"
disabled={disabled}
>
<BankPlus fontSize="small" color={isEnterpriseEdition ? 'primary' : 'disabled'} />
</IconButton>
Expand Down

0 comments on commit 60e5ba3

Please sign in to comment.