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

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
This commit is contained in:
Kibana Machine 2021-07-26 13:21:20 -04:00 committed by GitHub
parent c49c4199b8
commit e103f1ae49
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}>