[release-11.5.3] LDAP test: Fix page crash (#102683)

* LDAP test: Fix page crash (#102587)

* fix translation code on ldap page causing crash

* move tooltip outside of trans

(cherry picked from commit 4f01c1aa88)

* pseudo translations
This commit is contained in:
Ashley Harrison
2025-03-24 10:09:59 +00:00
committed by GitHub
parent 5eaeb7f6aa
commit 81b2e00f25
3 changed files with 9 additions and 11 deletions
@@ -1,6 +1,6 @@
import { useMemo } from 'react';
import { Tooltip, Icon, InteractiveTable, type CellProps, Column } from '@grafana/ui';
import { Tooltip, Icon, InteractiveTable, type CellProps, Column, Stack } from '@grafana/ui';
import { Trans } from 'app/core/internationalization';
import { LdapRole } from 'app/types';
@@ -28,14 +28,12 @@ export const LdapUserGroups = ({ groups }: Props) => {
header: 'Role',
cell: (props: CellProps<LdapRole, string | undefined>) =>
props.value || (
<>
<Trans i18nKey="admin.ldap-user-groups.no-org-found">
No match{' '}
<Tooltip content="No matching organizations found">
<Icon name="info-circle" />
</Tooltip>
</Trans>
</>
<Stack alignItems="center" wrap>
<Trans i18nKey="admin.ldap-user-groups.no-org-found">No match</Trans>
<Tooltip content="No matching organizations found">
<Icon name="info-circle" />
</Tooltip>
</Stack>
),
},
],
+1 -1
View File
@@ -88,7 +88,7 @@
"title": "LDAP Synchronization"
},
"ldap-user-groups": {
"no-org-found": "No match <2><0></0></2>"
"no-org-found": "No match"
},
"ldap-user-info": {
"no-team": "No teams found via LDAP"
+1 -1
View File
@@ -88,7 +88,7 @@
"title": "ĿĐÅP Ŝyʼnčĥřőʼnįžäŧįőʼn"
},
"ldap-user-groups": {
"no-org-found": "Ńő mäŧčĥ <2><0></0></2>"
"no-org-found": "Ńő mäŧčĥ"
},
"ldap-user-info": {
"no-team": "Ńő ŧęämş ƒőūʼnđ vįä ĿĐÅP"