Skip to content

Commit

Permalink
[frontend] Display fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kedae committed Oct 8, 2024
1 parent af10c8c commit 8b76502
Show file tree
Hide file tree
Showing 20 changed files with 48 additions and 31 deletions.
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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é",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "永久に削除されたオブジェクト",
Expand Down Expand Up @@ -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": "アクションのウィジェットポップオーバー",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "객체가 영구적으로 삭제됨",
Expand Down Expand Up @@ -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": "작업 위젯 팝오버",
Expand Down
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/lang/front/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "永久删除的对象",
Expand Down Expand Up @@ -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": "行动小部件弹出窗口",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const DangerZoneBlock: FunctionComponent<DangerZoneBlockProps> = ({ title, compo
if (isSensitiveModificationEnabled) {
currentTitle = (
<>
{title}<DangerZoneChip />
{title}<DangerZoneChip style={{ marginTop: 0 }} />
</>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Theme>();
return (
Expand All @@ -24,6 +24,7 @@ const DangerZoneChip = () => {
border: `1px solid ${theme.palette.dangerZone.main}`,
color: theme.palette.dangerZone.text?.primary,
backgroundColor: 'transparent',
...style,
}}
>
<Tooltip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ interface DrawerProps {
controlledDial?: DrawerControlledDialType;
containerStyle?: CSSProperties
disabled?: boolean
isSensitive?: boolean
}

// eslint-disable-next-line react/display-name
Expand All @@ -94,7 +93,6 @@ const Drawer = forwardRef(({
controlledDial,
containerStyle,
disabled = false,
isSensitive = false,
}: DrawerProps, ref) => {
const {
bannerSettings: { bannerHeightNumber },
Expand Down Expand Up @@ -131,7 +129,7 @@ const Drawer = forwardRef(({
{variant && (
<Fab
onClick={() => setOpen(true)}
color={isSensitive ? 'dangerZone' : 'primary'}
color={'primary'}
aria-label={update ? 'Edit' : 'Add'}
disabled={disabled}
className={classNames({
Expand Down
Loading

0 comments on commit 8b76502

Please sign in to comment.