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

Remove showExpandCollapse prop from the DataListToolbar calls

Remove showExpandCollapse prop from the DataListToolbar calls. This is
not an expected prop to be passed to this component.

Inside DataListToolbar.

```
  const showExpandCollapse = onCompact && onExpand;
```

In order to use this feature, `onCompact` and `onExpand` props should
be passed.

...
This commit is contained in:
nixocio 2020-08-05 18:03:02 -04:00
parent 1c0dc1cccb
commit 03274db695
9 changed files with 0 additions and 10 deletions

View File

@ -36,7 +36,6 @@ describe('<DataListToolbar />', () => {
<DataListToolbar
qsConfig={QS_CONFIG}
isAllSelected={false}
showExpandCollapse
searchColumns={searchColumns}
sortColumns={sortColumns}
onSearch={onSearch}
@ -272,7 +271,6 @@ describe('<DataListToolbar />', () => {
<DataListToolbar
qsConfig={QS_CONFIG}
isAllSelected
showExpandCollapse
searchColumns={searchColumns}
sortColumns={sortColumns}
onSearch={onSearch}

View File

@ -213,7 +213,6 @@ function JobList({ i18n, defaultParams, showTypeColumn = false }) {
<DatalistToolbar
{...props}
showSelectAll
showExpandCollapse
isAllSelected={isAllSelected}
onSelectAll={handleSelectAll}
qsConfig={QS_CONFIG}

View File

@ -120,7 +120,6 @@ function ApplicationTokenList({ i18n }) {
<DatalistToolbar
{...props}
showSelectAll
showExpandCollapse
isAllSelected={isAllSelected}
onSelectAll={isSelected =>
setSelected(isSelected ? [...tokens] : [])

View File

@ -131,7 +131,6 @@ function ApplicationsList({ i18n }) {
<DatalistToolbar
{...props}
showSelectAll
showExpandCollapse
isAllSelected={isAllSelected}
onSelectAll={isSelected =>
setSelected(isSelected ? [...applications] : [])

View File

@ -104,7 +104,6 @@ function CredentialTypeList({ i18n }) {
<DatalistToolbar
{...props}
showSelectAll
showExpandCollapse
isAllSelected={isAllSelected}
onSelectAll={isSelected =>
setSelected(isSelected ? [...credentialTypes] : [])

View File

@ -175,7 +175,6 @@ function InstanceGroupList({ i18n }) {
<DatalistToolbar
{...props}
showSelectAll
showExpandCollapse
isAllSelected={isAllSelected}
onSelectAll={isSelected =>
setSelected(isSelected ? [...instanceGroups] : [])

View File

@ -157,7 +157,6 @@ function InventoryList({ i18n }) {
<DatalistToolbar
{...props}
showSelectAll
showExpandCollapse
isAllSelected={isAllSelected}
onSelectAll={handleSelectAll}
qsConfig={QS_CONFIG}

View File

@ -150,7 +150,6 @@ function ProjectJobTemplatesList({ i18n }) {
<DatalistToolbar
{...props}
showSelectAll
showExpandCollapse
isAllSelected={isAllSelected}
onSelectAll={isSelected =>
setSelected(isSelected ? [...jobTemplates] : [])

View File

@ -210,7 +210,6 @@ function TemplateList({ i18n }) {
<DatalistToolbar
{...props}
showSelectAll
showExpandCollapse
isAllSelected={isAllSelected}
onSelectAll={handleSelectAll}
qsConfig={QS_CONFIG}