mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
[P1] Fleet UI: Hide bulk selection when unsupported filter (#17463)
This commit is contained in:
parent
70d369dcf7
commit
7e264b386f
@ -1030,6 +1030,7 @@ const ManageHostsPage = ({
|
||||
setSelectedHostIds(hostIds);
|
||||
};
|
||||
|
||||
// Bulk transfer is hidden for defined unsupportedFilters
|
||||
const onTransferHostSubmit = async (transferTeam: ITeam) => {
|
||||
setIsUpdatingHosts(true);
|
||||
|
||||
@ -1083,6 +1084,7 @@ const ManageHostsPage = ({
|
||||
}
|
||||
};
|
||||
|
||||
// Bulk delete is hidden for defined unsupportedFilters
|
||||
const onDeleteHostSubmit = async () => {
|
||||
setIsUpdatingHosts(true);
|
||||
|
||||
@ -1501,6 +1503,27 @@ const ManageHostsPage = ({
|
||||
return emptyHosts;
|
||||
};
|
||||
|
||||
// Shortterm fix for #17257
|
||||
const unsupportedFilter = !!(
|
||||
policyId ||
|
||||
policyResponse ||
|
||||
softwareId ||
|
||||
softwareTitleId ||
|
||||
softwareVersionId ||
|
||||
osName ||
|
||||
osVersionId ||
|
||||
osVersion ||
|
||||
macSettingsStatus ||
|
||||
bootstrapPackageStatus ||
|
||||
mdmId ||
|
||||
mdmEnrollmentStatus ||
|
||||
munkiIssueId ||
|
||||
lowDiskSpaceHosts ||
|
||||
osSettingsStatus ||
|
||||
diskEncryptionStatus ||
|
||||
vulnerability
|
||||
);
|
||||
|
||||
return (
|
||||
<TableContainer
|
||||
resultsTitle="hosts"
|
||||
@ -1532,7 +1555,7 @@ const ManageHostsPage = ({
|
||||
onActionButtonClick: onDeleteHostsClick,
|
||||
}}
|
||||
secondarySelectActions={secondarySelectActions}
|
||||
showMarkAllPages
|
||||
showMarkAllPages={!unsupportedFilter} // Shortterm fix for #17257
|
||||
isAllPagesSelected={isAllMatchingHostsSelected}
|
||||
searchable
|
||||
renderCount={renderHostCount}
|
||||
|
Loading…
Reference in New Issue
Block a user