Skip to content

Commit 85b9e51

Browse files
committed
Fix conflicts and bugs
1 parent 5afc26c commit 85b9e51

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

x-pack/legacy/plugins/siem/public/pages/case/components/configure_cases/button.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const ConfigureCaseButtonComponent: React.FC<ConfigureCaseButtonProps> = ({
3131
href={getConfigureCasesUrl(urlSearch)}
3232
iconType="controlsHorizontal"
3333
isDisabled={isDisabled}
34+
aria-label={label}
3435
>
3536
{label}
3637
</EuiButton>

x-pack/legacy/plugins/siem/public/pages/case/components/tag_list/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const TagList = React.memo(
6666
<EuiFlexItem grow={false}>
6767
<EuiButtonIcon
6868
isDisabled={disabled}
69-
aria-label={'tags'}
69+
aria-label={i18n.EDIT_TAGS_ARIA}
7070
iconType={'pencil'}
7171
onClick={setIsEditTags.bind(null, true)}
7272
/>

x-pack/legacy/plugins/siem/public/pages/case/components/user_list/index.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66

77
import React, { useCallback } from 'react';
8+
import { isEmpty } from 'lodash/fp';
9+
810
import {
911
EuiButtonIcon,
1012
EuiText,
@@ -15,9 +17,10 @@ import {
1517
EuiLoadingSpinner,
1618
EuiToolTip,
1719
} from '@elastic/eui';
20+
1821
import styled, { css } from 'styled-components';
19-
import { ElasticUser } from '../../../../containers/case/types';
2022

23+
import { ElasticUser } from '../../../../containers/case/types';
2124
import * as i18n from './translations';
2225

2326
interface UserListProps {
@@ -52,7 +55,7 @@ const renderUsers = (
5255
<MyAvatar name={fullName ? fullName : username ?? ''} />
5356
</EuiFlexItem>
5457
<EuiFlexItem>
55-
<EuiToolTip position="top" content={<p>{fullName ?? username}</p>}>
58+
<EuiToolTip position="top" content={<p>{fullName ? fullName : username ?? ''}</p>}>
5659
<p>
5760
<strong>
5861
<small data-test-subj="case-view-username">{username}</small>
@@ -67,8 +70,8 @@ const renderUsers = (
6770
data-test-subj="user-list-email-button"
6871
onClick={handleSendEmail.bind(null, email)}
6972
iconType="email"
70-
aria-label="email"
71-
isDisabled={email == null}
73+
aria-label={i18n.SEND_EMAIL_ARIA(fullName ? fullName : username ?? '')}
74+
isDisabled={isEmpty(email)}
7275
/>
7376
</EuiFlexItem>
7477
</MyFlexGroup>

0 commit comments

Comments
 (0)