Skip to content

Commit

Permalink
fix(InventoryTable): RHINENG-8413 - Bump fec to fix BulkSelect (#2192)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastilian authored May 10, 2024
1 parent 71b4ecc commit 9f73281
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@patternfly/react-core": "^5.2.3",
"@patternfly/react-icons": "^5.2.1",
"@patternfly/react-table": "^5.2.4",
"@redhat-cloud-services/frontend-components": "^4.2.6",
"@redhat-cloud-services/frontend-components": "^4.2.8",
"@redhat-cloud-services/frontend-components-notifications": "^4.1.0",
"@redhat-cloud-services/frontend-components-utilities": "^4.0.10",
"@redhat-cloud-services/host-inventory-client": "1.2.13",
Expand Down
26 changes: 14 additions & 12 deletions src/Utilities/hooks/useBulkSelectConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,19 @@ export const useBulkSelectConfig = (
onSelect: (value) => {
onSelectRows(0, value);
},
toggleProps: {
children: isBulkLoading ? (
[
<Fragment key="sd">
<Spinner size="sm" />
<span id="bulk-select-systems-toggle-checkbox-text">{`${calculateSelected()} selected`}</span>
</Fragment>,
]
) : calculateSelected() > 0 ? (
<span id="bulk-select-systems-toggle-checkbox-text">{`${calculateSelected()} selected`}</span>
) : null,
},
...(isBulkLoading
? {
isDisabled: isBulkLoading,
toggleProps: {
children: [
<Fragment key="sd">
<Spinner size="md" />
&nbsp;
<span id="bulk-select-systems-toggle-checkbox-text">{`${calculateSelected()} selected`}</span>
</Fragment>,
],
},
}
: {}),
};
};

0 comments on commit 9f73281

Please sign in to comment.