From 1e845afd84ce9b6303120cc175514fc9eeba7b3e Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Wed, 17 Apr 2019 12:07:43 +0200 Subject: [PATCH] added error check so that the search and create button are not displayed when users are logged out --- scm-ui-components/packages/ui-components/src/layout/Page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scm-ui-components/packages/ui-components/src/layout/Page.js b/scm-ui-components/packages/ui-components/src/layout/Page.js index 466d4c9fa5..2f9add611c 100644 --- a/scm-ui-components/packages/ui-components/src/layout/Page.js +++ b/scm-ui-components/packages/ui-components/src/layout/Page.js @@ -78,12 +78,12 @@ class Page extends React.Component { } renderPageHeader() { - const { title, subtitle, children, classes, t } = this.props; + const { error, title, subtitle, children, classes, t } = this.props; let pageActions = null; let pageActionsExists = false; React.Children.forEach(children, child => { - if (child && child.type.name === PageActions.name) { + if (child && child.type.name === PageActions.name && !error) { pageActions = (