1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00

update page header toolbar component names to new pf v4 names

This commit is contained in:
John Mitchell 2020-06-10 13:01:09 -04:00
parent c762545c47
commit 25916d983e
2 changed files with 12 additions and 12 deletions

View File

@ -82,7 +82,7 @@ function AppContainer({ i18n, navRouteConfig = [], children }) {
onNavToggle={handleNavToggle}
logo={<BrandLogo />}
logoProps={{ href: '/' }}
toolbar={
headerTools={
<PageHeaderToolbar
loggedInUser={config?.me}
isAboutDisabled={!config?.version}

View File

@ -7,9 +7,9 @@ import {
DropdownItem,
DropdownToggle,
DropdownPosition,
Toolbar,
ToolbarGroup,
ToolbarItem,
PageHeaderTools,
PageHeaderToolsGroup,
PageHeaderToolsItem,
Tooltip,
} from '@patternfly/react-core';
import { QuestionCircleIcon, UserIcon } from '@patternfly/react-icons';
@ -62,10 +62,10 @@ class PageHeaderToolbar extends Component {
} = this.props;
return (
<Toolbar>
<ToolbarGroup>
<PageHeaderTools>
<PageHeaderToolsGroup>
<Tooltip position="left" content={<div>{i18n._(t`Info`)}</div>}>
<ToolbarItem>
<PageHeaderToolsItem>
<Dropdown
isPlain
isOpen={isHelpOpen}
@ -93,10 +93,10 @@ class PageHeaderToolbar extends Component {
</DropdownItem>,
]}
/>
</ToolbarItem>
</PageHeaderToolsItem>
</Tooltip>
<Tooltip position="left" content={<div>{i18n._(t`User`)}</div>}>
<ToolbarItem>
<PageHeaderToolsItem>
<Dropdown
id="toolbar-user-dropdown"
isPlain
@ -134,10 +134,10 @@ class PageHeaderToolbar extends Component {
</DropdownItem>,
]}
/>
</ToolbarItem>
</PageHeaderToolsItem>
</Tooltip>
</ToolbarGroup>
</Toolbar>
</PageHeaderToolsGroup>
</PageHeaderTools>
);
}
}