mirror of
https://github.com/ansible/awx.git
synced 2026-02-03 10:38:15 -03:30
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,
|
||||
sortedColumnKey,
|
||||
sortOrder,
|
||||
addUrl
|
||||
addUrl,
|
||||
hideExpandCollapse
|
||||
} = this.props;
|
||||
const {
|
||||
// isActionDropdownOpen,
|
||||
@@ -202,7 +203,7 @@ class DataListToolbar extends React.Component {
|
||||
</Button>
|
||||
</ToolbarItem>
|
||||
</ToolbarGroup>
|
||||
<ToolbarGroup>
|
||||
<ToolbarGroup className={hideExpandCollapse ? 'pf-u-display-none' : null}>
|
||||
<ToolbarItem>
|
||||
<Button variant="plain" aria-label={i18n._(t`Expand`)}>
|
||||
<BarsIcon />
|
||||
|
||||
@@ -205,6 +205,7 @@ class Organizations extends Component {
|
||||
onSearch={this.onSearch}
|
||||
onSort={this.onSort}
|
||||
onSelectAll={this.onSelectAll}
|
||||
hideExpandCollapse
|
||||
/>
|
||||
<I18n>
|
||||
{({ i18n }) => (
|
||||
|
||||
Reference in New Issue
Block a user