mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
relates to #17896 UI implementation of the resend profile feature. This adds a resend button on the OS Settings modal row items that will request the profile is resent.  - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Roberto Dip <me@roperzh.com>
46 lines
1,018 B
TypeScript
46 lines
1,018 B
TypeScript
import React from "react";
|
|
import TableContainer from "components/TableContainer";
|
|
|
|
import generateTableHeaders, {
|
|
IHostMdmProfileWithAddedStatus,
|
|
} from "./OSSettingsTableConfig";
|
|
|
|
const baseClass = "os-settings-table";
|
|
|
|
interface IOSSettingsTableProps {
|
|
canResendProfiles: boolean;
|
|
hostId: number;
|
|
tableData: IHostMdmProfileWithAddedStatus[];
|
|
onProfileResent?: () => void;
|
|
}
|
|
|
|
const OSSettingsTable = ({
|
|
canResendProfiles,
|
|
hostId,
|
|
tableData,
|
|
onProfileResent,
|
|
}: IOSSettingsTableProps) => {
|
|
const tableConfig = generateTableHeaders(
|
|
hostId,
|
|
canResendProfiles,
|
|
onProfileResent
|
|
);
|
|
|
|
return (
|
|
<div className={baseClass}>
|
|
<TableContainer
|
|
resultsTitle="settings"
|
|
defaultSortHeader="name"
|
|
columnConfigs={tableConfig}
|
|
data={tableData}
|
|
emptyComponent="symbol"
|
|
isLoading={false}
|
|
showMarkAllPages={false}
|
|
isAllPagesSelected={false}
|
|
disablePagination
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default OSSettingsTable;
|