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:
parent
1c0dc1cccb
commit
03274db695
@ -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}
|
||||
|
@ -213,7 +213,6 @@ function JobList({ i18n, defaultParams, showTypeColumn = false }) {
|
||||
<DatalistToolbar
|
||||
{...props}
|
||||
showSelectAll
|
||||
showExpandCollapse
|
||||
isAllSelected={isAllSelected}
|
||||
onSelectAll={handleSelectAll}
|
||||
qsConfig={QS_CONFIG}
|
||||
|
@ -120,7 +120,6 @@ function ApplicationTokenList({ i18n }) {
|
||||
<DatalistToolbar
|
||||
{...props}
|
||||
showSelectAll
|
||||
showExpandCollapse
|
||||
isAllSelected={isAllSelected}
|
||||
onSelectAll={isSelected =>
|
||||
setSelected(isSelected ? [...tokens] : [])
|
||||
|
@ -131,7 +131,6 @@ function ApplicationsList({ i18n }) {
|
||||
<DatalistToolbar
|
||||
{...props}
|
||||
showSelectAll
|
||||
showExpandCollapse
|
||||
isAllSelected={isAllSelected}
|
||||
onSelectAll={isSelected =>
|
||||
setSelected(isSelected ? [...applications] : [])
|
||||
|
@ -104,7 +104,6 @@ function CredentialTypeList({ i18n }) {
|
||||
<DatalistToolbar
|
||||
{...props}
|
||||
showSelectAll
|
||||
showExpandCollapse
|
||||
isAllSelected={isAllSelected}
|
||||
onSelectAll={isSelected =>
|
||||
setSelected(isSelected ? [...credentialTypes] : [])
|
||||
|
@ -175,7 +175,6 @@ function InstanceGroupList({ i18n }) {
|
||||
<DatalistToolbar
|
||||
{...props}
|
||||
showSelectAll
|
||||
showExpandCollapse
|
||||
isAllSelected={isAllSelected}
|
||||
onSelectAll={isSelected =>
|
||||
setSelected(isSelected ? [...instanceGroups] : [])
|
||||
|
@ -157,7 +157,6 @@ function InventoryList({ i18n }) {
|
||||
<DatalistToolbar
|
||||
{...props}
|
||||
showSelectAll
|
||||
showExpandCollapse
|
||||
isAllSelected={isAllSelected}
|
||||
onSelectAll={handleSelectAll}
|
||||
qsConfig={QS_CONFIG}
|
||||
|
@ -150,7 +150,6 @@ function ProjectJobTemplatesList({ i18n }) {
|
||||
<DatalistToolbar
|
||||
{...props}
|
||||
showSelectAll
|
||||
showExpandCollapse
|
||||
isAllSelected={isAllSelected}
|
||||
onSelectAll={isSelected =>
|
||||
setSelected(isSelected ? [...jobTemplates] : [])
|
||||
|
@ -210,7 +210,6 @@ function TemplateList({ i18n }) {
|
||||
<DatalistToolbar
|
||||
{...props}
|
||||
showSelectAll
|
||||
showExpandCollapse
|
||||
isAllSelected={isAllSelected}
|
||||
onSelectAll={handleSelectAll}
|
||||
qsConfig={QS_CONFIG}
|
||||
|
Loading…
Reference in New Issue
Block a user