mirror of
https://github.com/ansible/awx.git
synced 2026-04-05 10:09:20 -02:30
Merge pull request #70 from mabashian/69-hide-expand-collapse
Adds option to hide expand/collapse in toolbar and hides it for the org list
This commit is contained in:
@@ -85,7 +85,8 @@ class DataListToolbar extends React.Component {
|
|||||||
onSort,
|
onSort,
|
||||||
sortedColumnKey,
|
sortedColumnKey,
|
||||||
sortOrder,
|
sortOrder,
|
||||||
addUrl
|
addUrl,
|
||||||
|
showExpandCollapse
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const {
|
const {
|
||||||
// isActionDropdownOpen,
|
// isActionDropdownOpen,
|
||||||
@@ -202,18 +203,20 @@ class DataListToolbar extends React.Component {
|
|||||||
</Button>
|
</Button>
|
||||||
</ToolbarItem>
|
</ToolbarItem>
|
||||||
</ToolbarGroup>
|
</ToolbarGroup>
|
||||||
<ToolbarGroup>
|
{ showExpandCollapse && (
|
||||||
<ToolbarItem>
|
<ToolbarGroup>
|
||||||
<Button variant="plain" aria-label={i18n._(t`Expand`)}>
|
<ToolbarItem>
|
||||||
<BarsIcon />
|
<Button variant="plain" aria-label={i18n._(t`Expand`)}>
|
||||||
</Button>
|
<BarsIcon />
|
||||||
</ToolbarItem>
|
</Button>
|
||||||
<ToolbarItem>
|
</ToolbarItem>
|
||||||
<Button variant="plain" aria-label={i18n._(t`Collapse`)}>
|
<ToolbarItem>
|
||||||
<EqualsIcon />
|
<Button variant="plain" aria-label={i18n._(t`Collapse`)}>
|
||||||
</Button>
|
<EqualsIcon />
|
||||||
</ToolbarItem>
|
</Button>
|
||||||
</ToolbarGroup>
|
</ToolbarItem>
|
||||||
|
</ToolbarGroup>
|
||||||
|
)}
|
||||||
</Toolbar>
|
</Toolbar>
|
||||||
</LevelItem>
|
</LevelItem>
|
||||||
<LevelItem>
|
<LevelItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user