always show the filters and search bar (#41163)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #40327 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. ## Testing - [x] QA'd all new/changed functionality manually
This commit is contained in:
@@ -0,0 +1 @@
|
||||
- Updated host software library to always allow filtering.
|
||||
+2
-8
@@ -156,12 +156,6 @@ const HostSoftwareLibraryTable = ({
|
||||
return <EmptySoftwareTable noSearchQuery={searchQuery === ""} />;
|
||||
}, [searchQuery]);
|
||||
|
||||
// Determines if a user should be able to filter or search in the table
|
||||
const hasData = data && data.software.length > 0;
|
||||
const hasQuery = searchQuery !== "";
|
||||
|
||||
const showFilterHeaders = hasData || hasQuery;
|
||||
|
||||
if (isAndroid(platform)) {
|
||||
return (
|
||||
<EmptyTable
|
||||
@@ -212,11 +206,11 @@ const HostSoftwareLibraryTable = ({
|
||||
pageSize={DEFAULT_PAGE_SIZE}
|
||||
inputPlaceHolder="Search by name"
|
||||
onQueryChange={onQueryChange}
|
||||
customControl={showFilterHeaders ? renderCustomControls : undefined}
|
||||
customControl={renderCustomControls}
|
||||
emptyComponent={memoizedEmptyComponent}
|
||||
showMarkAllPages={false}
|
||||
isAllPagesSelected={false}
|
||||
searchable={showFilterHeaders}
|
||||
searchable
|
||||
manualSortBy
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user