mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
Merge pull request #5511 from jakemcdermott/ui-next-fix-inv-list-select-all-state
Initialize inventory list with none selected Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -146,7 +146,8 @@ class InventoriesList extends Component {
|
|||||||
const { match, i18n } = this.props;
|
const { match, i18n } = this.props;
|
||||||
const canAdd =
|
const canAdd =
|
||||||
actions && Object.prototype.hasOwnProperty.call(actions, 'POST');
|
actions && Object.prototype.hasOwnProperty.call(actions, 'POST');
|
||||||
const isAllSelected = selected.length === inventories.length;
|
const isAllSelected =
|
||||||
|
selected.length === inventories.length && selected.length !== 0;
|
||||||
const addButton = (
|
const addButton = (
|
||||||
<AddDropDownButton
|
<AddDropDownButton
|
||||||
key="add"
|
key="add"
|
||||||
|
|||||||
Reference in New Issue
Block a user