Skip to content

Commit

Permalink
[Fleet] Fix Page title on Integrations Edit Package Policy (#87012) (#…
Browse files Browse the repository at this point in the history
…87041)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
paul-tavares and kibanamachine authored Dec 30, 2020
1 parent 8ce8899 commit b6a0554
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 b6a0554

Please sign in to comment.