From 8b76502e7c3909899308f7d7c40eb7aba68cc0a8 Mon Sep 17 00:00:00 2001 From: Adrien Servel Date: Mon, 7 Oct 2024 17:37:25 +0200 Subject: [PATCH] [frontend] Display fixes --- .../opencti-front/lang/front/de.json | 2 ++ .../opencti-front/lang/front/en.json | 2 ++ .../opencti-front/lang/front/es.json | 2 ++ .../opencti-front/lang/front/fr.json | 2 ++ .../opencti-front/lang/front/ja.json | 2 ++ .../opencti-front/lang/front/ko.json | 2 ++ .../opencti-front/lang/front/zh.json | 2 ++ .../common/dangerZone/DangerZoneBlock.tsx | 2 +- .../common/dangerZone/DangerZoneChip.tsx | 3 ++- .../components/common/drawer/Drawer.tsx | 4 +-- .../private/components/settings/Policies.tsx | 27 +++++++++++++------ .../private/components/settings/Settings.jsx | 4 +++ .../components/settings/groups/Group.tsx | 5 ++-- .../settings/groups/GroupEdition.tsx | 3 --- .../settings/groups/GroupEditionContainer.tsx | 3 --- .../settings/groups/GroupPopover.tsx | 4 +-- .../settings/roles/CapabilitiesList.tsx | 2 +- .../components/settings/roles/Role.tsx | 1 - .../components/settings/roles/RoleEdition.tsx | 3 --- .../components/settings/roles/RolePopover.jsx | 4 +-- 20 files changed, 48 insertions(+), 31 deletions(-) diff --git a/opencti-platform/opencti-front/lang/front/de.json b/opencti-platform/opencti-front/lang/front/de.json index a1d843f5e6c5..34de84372298 100644 --- a/opencti-platform/opencti-front/lang/front/de.json +++ b/opencti-platform/opencti-front/lang/front/de.json @@ -1836,6 +1836,7 @@ "Number of targeting": "Anzahl der Zielpersonen", "Number of uppercase chars must be greater or equals to": "Anzahl der Großbuchstaben muss größer oder gleich sein", "Number of words (split on hyphen, space) must be greater or equals to": "Anzahl der Wörter (getrennt durch Bindestrich, Leerzeichen) muss größer oder gleich sein", + "Numerous repercussions linked to the activation of this feature": "Zahlreiche Auswirkungen, die mit der Aktivierung dieser Funktion verbunden sind", "OBAS security posture": "OBAS-Sicherheitslage", "Object": "Objekt", "Object permanently deleted": "Objekt dauerhaft gelöscht", @@ -2942,6 +2943,7 @@ "Weight (Pounds)": "Gewicht (Pfund)", "When an event happens on a knowledge your participate, you will receive notification through your personal notifiers": "Wenn ein Ereignis auf einem Wissen stattfindet, an dem Sie teilnehmen, erhalten Sie eine Benachrichtigung über Ihre persönlichen Melder", "When enforcing 2FA authentication, all users will be asked to enable 2FA to be able to login in the platform.": "Wenn Sie die 2FA-Authentifizierung erzwingen, werden alle Benutzer aufgefordert, 2FA zu aktivieren, um sich bei der Plattform anmelden zu können.", + "When you set a platform organization you enable the organization sharing and segregation feature.": "Wenn Sie eine Plattformorganisation festlegen, aktivieren Sie die Funktion zur gemeinsamen Nutzung und Trennung von Organisationen.", "When you set a platform organization, organization segregation is enabled: users without an organization will no longer be able to log in, all the pieces of knowledge which are not shared with any organization will be accessible only for users part of the platform one.": "Wenn Sie eine Plattformorganisation festlegen, wird die Organisationstrennung aktiviert: Benutzer ohne Organisation können sich nicht mehr anmelden, alle Wissensbestände, die mit keiner Organisation geteilt werden, sind nur für Benutzer der Plattform zugänglich.", "Widget": "Widget", "Widget popover of actions": "Widget-Popover der Aktionen", diff --git a/opencti-platform/opencti-front/lang/front/en.json b/opencti-platform/opencti-front/lang/front/en.json index 8b2554c15538..2c4a6be39fea 100644 --- a/opencti-platform/opencti-front/lang/front/en.json +++ b/opencti-platform/opencti-front/lang/front/en.json @@ -1836,6 +1836,7 @@ "Number of targeting": "Number of targeting", "Number of uppercase chars must be greater or equals to": "Number of uppercase chars must be greater or equals to", "Number of words (split on hyphen, space) must be greater or equals to": "Number of words (split on hyphen, space) must be greater or equals to", + "Numerous repercussions linked to the activation of this feature": "Numerous repercussions linked to the activation of this feature", "OBAS security posture": "OBAS security posture", "Object": "Object", "Object permanently deleted": "Object permanently deleted", @@ -2942,6 +2943,7 @@ "Weight (Pounds)": "Weight (Pounds)", "When an event happens on a knowledge your participate, you will receive notification through your personal notifiers": "When an event happens on a knowledge your participate, you will receive notification through your personal notifiers", "When enforcing 2FA authentication, all users will be asked to enable 2FA to be able to login in the platform.": "When enforcing 2FA authentication, all users will be asked to enable 2FA to be able to login in the platform.", + "When you set a platform organization you enable the organization sharing and segregation feature.": "When you set a platform organization you enable the organization sharing and segregation feature.", "When you set a platform organization, organization segregation is enabled: users without an organization will no longer be able to log in, all the pieces of knowledge which are not shared with any organization will be accessible only for users part of the platform one.": "When you set a platform organization, organization segregation is enabled: users without an organization will no longer be able to log in, all the pieces of knowledge which are not shared with any organization will be accessible only for users part of the platform one.", "Widget": "Widget", "Widget popover of actions": "Widget popover of actions", diff --git a/opencti-platform/opencti-front/lang/front/es.json b/opencti-platform/opencti-front/lang/front/es.json index c7cee94be839..a37626f08074 100644 --- a/opencti-platform/opencti-front/lang/front/es.json +++ b/opencti-platform/opencti-front/lang/front/es.json @@ -1836,6 +1836,7 @@ "Number of targeting": "Número de ataques", "Number of uppercase chars must be greater or equals to": "Número de caracteres en mayúsculas debe ser mayor o igual a", "Number of words (split on hyphen, space) must be greater or equals to": "Número de palabras (división en guión, espacio) debe ser mayor o igual a", + "Numerous repercussions linked to the activation of this feature": "Numerosas repercusiones vinculadas a la activación de esta función", "OBAS security posture": "Postura de seguridad OBAS", "Object": "Objeto", "Object permanently deleted": "Objeto eliminado definitivamente", @@ -2942,6 +2943,7 @@ "Weight (Pounds)": "Peso (Libras)", "When an event happens on a knowledge your participate, you will receive notification through your personal notifiers": "Cuando se produzca un evento sobre un conocimiento en el que participes, recibirás una notificación a través de tus notificadores personales", "When enforcing 2FA authentication, all users will be asked to enable 2FA to be able to login in the platform.": "Al aplicar la autenticación 2FA, se pedirá a todos los usuarios que habiliten 2FA para poder iniciar sesión en la plataforma.", + "When you set a platform organization you enable the organization sharing and segregation feature.": "Al establecer una organización de plataforma, se activa la función de compartición y segregación de organizaciones.", "When you set a platform organization, organization segregation is enabled: users without an organization will no longer be able to log in, all the pieces of knowledge which are not shared with any organization will be accessible only for users part of the platform one.": "Al establecer una organización de plataforma, se activa la segregación de organizaciones: los usuarios que no tengan una organización ya no podrán iniciar sesión, todas las piezas de conocimiento que no se compartan con ninguna organización sólo serán accesibles para los usuarios que formen parte de la de plataforma.", "Widget": "Elemento gráfico", "Widget popover of actions": "Widget popover de acciones", diff --git a/opencti-platform/opencti-front/lang/front/fr.json b/opencti-platform/opencti-front/lang/front/fr.json index 918ed401a617..9aba946d6eb4 100644 --- a/opencti-platform/opencti-front/lang/front/fr.json +++ b/opencti-platform/opencti-front/lang/front/fr.json @@ -1836,6 +1836,7 @@ "Number of targeting": "Nombre de ciblages", "Number of uppercase chars must be greater or equals to": "Le nombre de caractères majuscules doit être supérieur ou égal à", "Number of words (split on hyphen, space) must be greater or equals to": "Le nombre de mots (séparés par un trait d'union, un espace) doit être supérieur ou égal à", + "Numerous repercussions linked to the activation of this feature": "Nombreuses répercussions liées à l'activation de ce dispositif", "OBAS security posture": "Posture de sécurité OBAS", "Object": "Objet", "Object permanently deleted": "Objet définitivement supprimé", @@ -2942,6 +2943,7 @@ "Weight (Pounds)": "Poids (livres)", "When an event happens on a knowledge your participate, you will receive notification through your personal notifiers": "Lorsqu'un événement se produit sur une connaissance à laquelle vous participez, vous recevrez une notification par l'intermédiaire de vos notificateurs personnels", "When enforcing 2FA authentication, all users will be asked to enable 2FA to be able to login in the platform.": "Lors de l’application de l'authentication à deux facteurs, tous les utilisateurs seront invités à activer l'authentication à deux facteurs pour pouvoir se connecter à la plate-forme.", + "When you set a platform organization you enable the organization sharing and segregation feature.": "Lorsque vous définissez une organisation de plate-forme, vous activez la fonction de partage et de ségrégation de l'organisation.", "When you set a platform organization, organization segregation is enabled: users without an organization will no longer be able to log in, all the pieces of knowledge which are not shared with any organization will be accessible only for users part of the platform one.": "Lorsque vous définissez une organisation de plate-forme, la ségrégation des organisations est activée : les utilisateurs sans organisation ne pourront plus se connecter, tous les éléments de connaissance qui ne sont pas partagés avec une organisation seront accessibles uniquement pour les utilisateurs faisant partie de la plate-forme.", "Widget": "Widget", "Widget popover of actions": "Widget popover d'actions", diff --git a/opencti-platform/opencti-front/lang/front/ja.json b/opencti-platform/opencti-front/lang/front/ja.json index 5da363a7c85c..4c3d43e03b0d 100644 --- a/opencti-platform/opencti-front/lang/front/ja.json +++ b/opencti-platform/opencti-front/lang/front/ja.json @@ -1836,6 +1836,7 @@ "Number of targeting": "標的の数", "Number of uppercase chars must be greater or equals to": "大文字の数は次の値以上でなければなりません", "Number of words (split on hyphen, space) must be greater or equals to": "単語数 (ハイフン、スペースで分割) は次の値以上でなければなりません", + "Numerous repercussions linked to the activation of this feature": "この機能の発動に関連する数々の影響", "OBAS security posture": "OBAS セキュリティ姿勢", "Object": "オブジェクト", "Object permanently deleted": "永久に削除されたオブジェクト", @@ -2942,6 +2943,7 @@ "Weight (Pounds)": "重量 (ポンド)", "When an event happens on a knowledge your participate, you will receive notification through your personal notifiers": "あなたが参加しているナレッジでイベントが発生すると、あなたの個人通知を通して通知が届きます。", "When enforcing 2FA authentication, all users will be asked to enable 2FA to be able to login in the platform.": "2要素認証を強制する場合、すべてのユーザーは、プラットフォームにログインできるように2要素認証を有効にするように求められます。", + "When you set a platform organization you enable the organization sharing and segregation feature.": "プラットフォーム組織を設定すると、組織の共有と分離機能が有効になります。", "When you set a platform organization, organization segregation is enabled: users without an organization will no longer be able to log in, all the pieces of knowledge which are not shared with any organization will be accessible only for users part of the platform one.": "プラットフォームの組織を設定すると、組織の分離が有効になります:組織のないユーザーはもはやログインすることはできません、どの組織と共有されていない知識のすべての作品は、プラットフォームの1つのユーザーのみにアクセスできるようになります。", "Widget": "ウィジェット", "Widget popover of actions": "アクションのウィジェットポップオーバー", diff --git a/opencti-platform/opencti-front/lang/front/ko.json b/opencti-platform/opencti-front/lang/front/ko.json index 300bacf45a3f..b7f1333b463d 100644 --- a/opencti-platform/opencti-front/lang/front/ko.json +++ b/opencti-platform/opencti-front/lang/front/ko.json @@ -1836,6 +1836,7 @@ "Number of targeting": "표적 수", "Number of uppercase chars must be greater or equals to": "대문자 수는 더 크거나 같아야 합니다", "Number of words (split on hyphen, space) must be greater or equals to": "단어 수(하이픈, 공백으로 분할)는 더 크거나 같아야 합니다", + "Numerous repercussions linked to the activation of this feature": "이 기능의 활성화와 관련된 수많은 파급 효과", "OBAS security posture": "OBAS 보안 상태", "Object": "객체", "Object permanently deleted": "객체가 영구적으로 삭제됨", @@ -2942,6 +2943,7 @@ "Weight (Pounds)": "무게 (파운드)", "When an event happens on a knowledge your participate, you will receive notification through your personal notifiers": "참여하는 지식에서 이벤트가 발생하면 개인 알림을 통해 알림을 받습니다.", "When enforcing 2FA authentication, all users will be asked to enable 2FA to be able to login in the platform.": "2FA 인증을 강제하면 모든 사용자는 플랫폼에 로그인할 수 있도록 2FA를 활성화하라는 요청을 받습니다.", + "When you set a platform organization you enable the organization sharing and segregation feature.": "플랫폼 조직을 설정하면 조직 공유 및 분리 기능이 활성화됩니다.", "When you set a platform organization, organization segregation is enabled: users without an organization will no longer be able to log in, all the pieces of knowledge which are not shared with any organization will be accessible only for users part of the platform one.": "플랫폼 조직을 설정하면 조직 분리가 활성화되어 조직이 없는 사용자는 더 이상 로그인할 수 없으며, 어떤 조직과도 공유되지 않는 모든 지식은 플랫폼 조직에 속한 사용자만 액세스할 수 있습니다.", "Widget": "위젯", "Widget popover of actions": "작업 위젯 팝오버", diff --git a/opencti-platform/opencti-front/lang/front/zh.json b/opencti-platform/opencti-front/lang/front/zh.json index f128cf2f102a..05a1b0ab6861 100644 --- a/opencti-platform/opencti-front/lang/front/zh.json +++ b/opencti-platform/opencti-front/lang/front/zh.json @@ -1836,6 +1836,7 @@ "Number of targeting": "目标的数量", "Number of uppercase chars must be greater or equals to": "大写字符的数量必须大于或等于", "Number of words (split on hyphen, space) must be greater or equals to": "字数(以连字符、空格分隔)必须大于或等于", + "Numerous repercussions linked to the activation of this feature": "与激活该功能有关的众多反响", "OBAS security posture": "OBAS 安全态势", "Object": "对象", "Object permanently deleted": "永久删除的对象", @@ -2942,6 +2943,7 @@ "Weight (Pounds)": "重量(磅)", "When an event happens on a knowledge your participate, you will receive notification through your personal notifiers": "当您参与的知识发生事件时,您将通过个人通知器收到通知", "When enforcing 2FA authentication, all users will be asked to enable 2FA to be able to login in the platform.": "当强制执行双因素认证时,所有用户都将被要求启用双因素认证才能登录平台。", + "When you set a platform organization you enable the organization sharing and segregation feature.": "设置平台组织时,将启用组织共享和隔离功能。", "When you set a platform organization, organization segregation is enabled: users without an organization will no longer be able to log in, all the pieces of knowledge which are not shared with any organization will be accessible only for users part of the platform one.": "当您设置平台组织时,组织隔离将被启用:没有组织的用户将无法登录,所有未与任何组织共享的知识片段将只能由平台组织的用户访问。", "Widget": "组件", "Widget popover of actions": "行动小部件弹出窗口", diff --git a/opencti-platform/opencti-front/src/private/components/common/dangerZone/DangerZoneBlock.tsx b/opencti-platform/opencti-front/src/private/components/common/dangerZone/DangerZoneBlock.tsx index 2fe6ebc57c51..eeb318649f10 100644 --- a/opencti-platform/opencti-front/src/private/components/common/dangerZone/DangerZoneBlock.tsx +++ b/opencti-platform/opencti-front/src/private/components/common/dangerZone/DangerZoneBlock.tsx @@ -27,7 +27,7 @@ const DangerZoneBlock: FunctionComponent = ({ title, compo if (isSensitiveModificationEnabled) { currentTitle = ( <> - {title} + {title} ); } diff --git a/opencti-platform/opencti-front/src/private/components/common/dangerZone/DangerZoneChip.tsx b/opencti-platform/opencti-front/src/private/components/common/dangerZone/DangerZoneChip.tsx index 7e3c5c5f32b7..bd78574ae512 100644 --- a/opencti-platform/opencti-front/src/private/components/common/dangerZone/DangerZoneChip.tsx +++ b/opencti-platform/opencti-front/src/private/components/common/dangerZone/DangerZoneChip.tsx @@ -4,7 +4,7 @@ import Tooltip from '@mui/material/Tooltip'; import type { Theme } from '../../../../components/Theme'; import { useFormatter } from '../../../../components/i18n'; -const DangerZoneChip = () => { +const DangerZoneChip = ({ style }: { style?: React.CSSProperties }) => { const { t_i18n } = useFormatter(); const theme = useTheme(); return ( @@ -24,6 +24,7 @@ const DangerZoneChip = () => { border: `1px solid ${theme.palette.dangerZone.main}`, color: theme.palette.dangerZone.text?.primary, backgroundColor: 'transparent', + ...style, }} > { const { bannerSettings: { bannerHeightNumber }, @@ -131,7 +129,7 @@ const Drawer = forwardRef(({ {variant && ( setOpen(true)} - color={isSensitive ? 'dangerZone' : 'primary'} + color={'primary'} aria-label={update ? 'Edit' : 'Add'} disabled={disabled} className={classNames({ diff --git a/opencti-platform/opencti-front/src/private/components/settings/Policies.tsx b/opencti-platform/opencti-front/src/private/components/settings/Policies.tsx index 458a624a4c14..97df10e548c4 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/Policies.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/Policies.tsx @@ -3,7 +3,7 @@ import { graphql, PreloadedQuery, useFragment, usePreloadedQuery } from 'react-r import { Field, Form, Formik } from 'formik'; import * as Yup from 'yup'; import Grid from '@mui/material/Grid'; -import { makeStyles } from '@mui/styles'; +import { makeStyles, useTheme } from '@mui/styles'; import Paper from '@mui/material/Paper'; import Typography from '@mui/material/Typography'; import Alert from '@mui/material/Alert'; @@ -40,6 +40,7 @@ import Breadcrumbs from '../../../components/Breadcrumbs'; import useApiMutation from '../../../utils/hooks/useApiMutation'; import useSensitiveModifications from '../../../utils/hooks/useSensitiveModifications'; import Transition from '../../../components/Transition'; +import type { Theme } from '../../../components/Theme'; // Deprecated - https://mui.com/system/styles/basics/ // Do not use it for new code. @@ -141,7 +142,10 @@ const PoliciesComponent: FunctionComponent = ({ ); const [commitField] = useApiMutation(policiesFieldPatch); + const classes = useStyles(); + const theme = useTheme(); + const { t_i18n } = useFormatter(); const handleSubmitField = (name: string, value: string | string[] | Option | null) => { policiesValidation() @@ -201,10 +205,10 @@ const PoliciesComponent: FunctionComponent = ({ )} component={({ disabled, style }) => ( - - {t_i18n( - 'When you set a platform organization, all the pieces of knowledge which are not shared with any organization will be accessible only for users part of the platform one.', - )} + + {t_i18n('When you set a platform organization you enable the organization sharing and segregation feature.')} +
+ {t_i18n('Therefore all pieces of knowledge which are not explicitly shared with any organization won\'t be accessible to user(s) not member of the platform organization.')}
= ({ TransitionComponent={Transition} onClose={() => setOpenPlatformOrganizationChanges(false)} > - {t_i18n('Warning')} + {t_i18n('Numerous repercussions linked to the activation of this feature')} - + {t_i18n( - 'This change may have an impact on users and connectors who WILL NO LONGER BE ABLE TO ACCESS KNOWLEDGE if they do not belong to the main platform organization.', + 'This feature has implications for the entire platform and must be fully understood before being used. For example, it\'s mandatory to have organizations set up for each user, otherwise they won\'t be able to log in. It is also mandatory to include connector\'s users in the platform main organization to avoid import problems.', )} diff --git a/opencti-platform/opencti-front/src/private/components/settings/Settings.jsx b/opencti-platform/opencti-front/src/private/components/settings/Settings.jsx index 231c5b3ee6e1..f07b272a713f 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/Settings.jsx +++ b/opencti-platform/opencti-front/src/private/components/settings/Settings.jsx @@ -437,6 +437,10 @@ const Settings = () => { color={isSensitiveModificationEnabled ? 'dangerZone' : 'primary'} onClick={() => handleSubmitField(id, 'enterprise_edition', '')} disabled={disabled} + style={isSensitiveModificationEnabled ? { + color: theme.palette.dangerZone.text.primary, + borderColor: theme.palette.dangerZone.main, + } : undefined} > {t_i18n('Disable Enterprise Edition')} diff --git a/opencti-platform/opencti-front/src/private/components/settings/groups/Group.tsx b/opencti-platform/opencti-front/src/private/components/settings/groups/Group.tsx index 6de3c093c4e9..5b21d7850dd9 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/groups/Group.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/groups/Group.tsx @@ -126,7 +126,7 @@ const Group = ({ groupData }: { groupData: Group_group$key }) => { const { t_i18n } = useFormatter(); const group = useFragment(groupFragment, groupData); - const { isAllowed, isSensitive } = useSensitiveModifications(group.standard_id); + const { isAllowed } = useSensitiveModifications(group.standard_id); const markingsSort = R.sortWith([ R.ascend(R.propOr('TLP', 'definition_type')), @@ -159,7 +159,7 @@ const Group = ({ groupData }: { groupData: Group_group$key }) => { {group.name}
- +
{
diff --git a/opencti-platform/opencti-front/src/private/components/settings/groups/GroupEdition.tsx b/opencti-platform/opencti-front/src/private/components/settings/groups/GroupEdition.tsx index c9714fe3a7fc..0dbc6c375d7e 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/groups/GroupEdition.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/groups/GroupEdition.tsx @@ -9,7 +9,6 @@ interface GroupEditionProps { groupId: string open?: boolean disabled?: boolean - isSensitive?: boolean } const GroupEdition: FunctionComponent = ({ @@ -17,7 +16,6 @@ const GroupEdition: FunctionComponent = ({ groupId, open, disabled = false, - isSensitive = false, }) => { const groupQueryRef = useQueryLoading(groupEditionContainerQuery, { id: groupId }); return ( @@ -29,7 +27,6 @@ const GroupEdition: FunctionComponent = ({ handleClose={handleClose} open={open} disabled={disabled} - isSensitive={isSensitive} /> )} diff --git a/opencti-platform/opencti-front/src/private/components/settings/groups/GroupEditionContainer.tsx b/opencti-platform/opencti-front/src/private/components/settings/groups/GroupEditionContainer.tsx index 0f045cb86654..a0988d7d76ac 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/groups/GroupEditionContainer.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/groups/GroupEditionContainer.tsx @@ -67,7 +67,6 @@ interface GroupEditionContainerProps { handleClose?: () => void open?: boolean disabled?: boolean - isSensitive?: boolean } const GroupEditionContainer: FunctionComponent = ({ @@ -75,7 +74,6 @@ const GroupEditionContainer: FunctionComponent = ({ handleClose = () => {}, open, disabled = false, - isSensitive = false, }) => { const { t_i18n } = useFormatter(); @@ -113,7 +111,6 @@ const GroupEditionContainer: FunctionComponent = ({ onClose={handleClose} open={open} disabled={disabled} - isSensitive={isSensitive} > <> diff --git a/opencti-platform/opencti-front/src/private/components/settings/groups/GroupPopover.tsx b/opencti-platform/opencti-front/src/private/components/settings/groups/GroupPopover.tsx index 39053ed0703b..2a04b4d360f8 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/groups/GroupPopover.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/groups/GroupPopover.tsx @@ -47,7 +47,7 @@ const groupPopoverDeletionMutation = graphql` } `; -const GroupPopover = ({ groupId, disabled = false, isSensitive = false }: { groupId: string, disabled?: boolean, isSensitive?: boolean }) => { +const GroupPopover = ({ groupId, disabled = false }: { groupId: string, disabled?: boolean }) => { const classes = useStyles(); const { t_i18n } = useFormatter(); const navigate = useNavigate(); @@ -109,7 +109,7 @@ const GroupPopover = ({ groupId, disabled = false, isSensitive = false }: { grou size="large" style={{ marginTop: 3 }} disabled={disabled} - color={isSensitive ? 'dangerZone' : 'primary'} + color={'primary'} > diff --git a/opencti-platform/opencti-front/src/private/components/settings/roles/CapabilitiesList.tsx b/opencti-platform/opencti-front/src/private/components/settings/roles/CapabilitiesList.tsx index 13765ff8abec..c089d6b2cdba 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/roles/CapabilitiesList.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/roles/CapabilitiesList.tsx @@ -47,7 +47,7 @@ const CapabilitiesList: FunctionComponent = ({ primary={ <> {t_i18n('Allow modification of sensitive configuration')} - + } /> diff --git a/opencti-platform/opencti-front/src/private/components/settings/roles/Role.tsx b/opencti-platform/opencti-front/src/private/components/settings/roles/Role.tsx index fa971ba7c523..c2f8233e9bdf 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/roles/Role.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/roles/Role.tsx @@ -176,7 +176,6 @@ const Role = ({ return ( ); diff --git a/opencti-platform/opencti-front/src/private/components/settings/roles/RoleEdition.tsx b/opencti-platform/opencti-front/src/private/components/settings/roles/RoleEdition.tsx index f5716522ba10..a1394d773e19 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/roles/RoleEdition.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/roles/RoleEdition.tsx @@ -17,7 +17,6 @@ interface RoleEditionProps { handleClose?: () => void open?: boolean disabled?: boolean - isSensitive?: boolean } const RoleEdition: FunctionComponent = ({ @@ -25,7 +24,6 @@ const RoleEdition: FunctionComponent = ({ role, open, disabled = false, - isSensitive = false, }) => { const { t_i18n } = useFormatter(); const [currentTab, setTab] = useState(0); @@ -41,7 +39,6 @@ const RoleEdition: FunctionComponent = ({ onClose={handleClose} context={editContext} disabled={disabled} - isSensitive={isSensitive} > <> diff --git a/opencti-platform/opencti-front/src/private/components/settings/roles/RolePopover.jsx b/opencti-platform/opencti-front/src/private/components/settings/roles/RolePopover.jsx index 04b9ac725d1d..f1158538babb 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/roles/RolePopover.jsx +++ b/opencti-platform/opencti-front/src/private/components/settings/roles/RolePopover.jsx @@ -112,7 +112,7 @@ class RolePopover extends Component { } render() { - const { classes, t, roleId, disabled, isSensitive } = this.props; + const { classes, t, roleId, disabled } = this.props; return (