Display full featured header when creating policies from policy page (#106715)

This commit is contained in:
Kyle Pollich 2021-07-26 11:00:53 -04:00 committed by GitHub
parent 2b34cd3572
commit d66e12e418
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,10 @@ export const CreatePackagePolicyPageLayout: React.FunctionComponent<{
'data-test-subj': dataTestSubj,
}) => {
const pageTitle = useMemo(() => {
if ((from === 'package' || from === 'package-edit' || from === 'edit') && packageInfo) {
if (
(from === 'package' || from === 'package-edit' || from === 'edit' || from === 'policy') &&
packageInfo
) {
return (
<EuiFlexGroup alignItems="center" gutterSize="m">
<EuiFlexItem grow={false}>