Skip to content

Commit

Permalink
[Fleet] Fix Page title on Integrations Edit Package Policy (elastic#8…
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Dec 30, 2020
1 parent a9d7e10 commit 1f503b2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export const CreatePackagePolicyPageLayout: React.FunctionComponent<{
</EuiFlexItem>
<EuiFlexItem>
<EuiText>
<h1>
{from === 'edit' ? (
<h1 data-test-subj={`${dataTestSubj}_pageTitle`}>
{from === 'edit' || from === 'package-edit' ? (
<FormattedMessage
id="xpack.fleet.editPackagePolicy.pageTitleWithPackageName"
defaultMessage="Edit {packageName} integration"
Expand All @@ -78,7 +78,7 @@ export const CreatePackagePolicyPageLayout: React.FunctionComponent<{

return from === 'edit' || from === 'package-edit' ? (
<EuiText>
<h1>
<h1 data-test-subj={`${dataTestSubj}_pageTitle`}>
<FormattedMessage
id="xpack.fleet.editPackagePolicy.pageTitle"
defaultMessage="Edit integration"
Expand All @@ -95,7 +95,7 @@ export const CreatePackagePolicyPageLayout: React.FunctionComponent<{
</h1>
</EuiText>
);
}, [from, packageInfo]);
}, [dataTestSubj, from, packageInfo]);

const pageDescription = useMemo(() => {
return from === 'edit' || from === 'package-edit' ? (
Expand Down

0 comments on commit 1f503b2

Please sign in to comment.