mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 12:39:01 +00:00
MINOR: fix the reviewer placeholder container multiple no (#20886)
* fix the reviewer placeholder container multiple no * fix unit test
This commit is contained in:
parent
598699eef3
commit
b17c9be06d
@ -284,7 +284,9 @@ const IncidentManagerPageHeader = ({
|
||||
team: false,
|
||||
}}
|
||||
owners={details?.assignee ? [details.assignee] : []}
|
||||
placeHolder={t('label.assignee')}
|
||||
placeHolder={t('label.no-entity', {
|
||||
entity: t('label.assignee'),
|
||||
})}
|
||||
tooltipText={t('label.edit-entity', {
|
||||
entity: t('label.assignee'),
|
||||
})}
|
||||
|
@ -276,7 +276,7 @@ describe('Incident Manager Page Header component', () => {
|
||||
screen.getByText('TestCaseIncidentManagerStatus.component')
|
||||
).toBeInTheDocument();
|
||||
// Assignee
|
||||
expect(screen.getByText('label.assignee')).toBeInTheDocument();
|
||||
expect(screen.getByTestId('assignee')).toBeInTheDocument();
|
||||
// Severity
|
||||
expect(screen.getByText('label.severity')).toBeInTheDocument();
|
||||
expect(screen.getByText('Severity.component')).toBeInTheDocument();
|
||||
|
@ -86,9 +86,8 @@ export const NoOwnerFound: React.FC<NoOwnerFoundProps> = ({
|
||||
|
||||
{!isCompactView && (
|
||||
<div className="no-owner-text text-sm font-medium">
|
||||
{t('label.no-entity', {
|
||||
entity: placeHolder ?? t('label.owner-plural'),
|
||||
})}
|
||||
{placeHolder ??
|
||||
t('label.no-entity', { entity: t('label.owner-plural') })}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user