Implements patch policies #31914 - https://github.com/fleetdm/fleet/pull/40816 - https://github.com/fleetdm/fleet/pull/41248 - https://github.com/fleetdm/fleet/pull/41276 - https://github.com/fleetdm/fleet/pull/40948 - https://github.com/fleetdm/fleet/pull/40837 - https://github.com/fleetdm/fleet/pull/40956 - https://github.com/fleetdm/fleet/pull/41168 - https://github.com/fleetdm/fleet/pull/41171 - https://github.com/fleetdm/fleet/pull/40691 - https://github.com/fleetdm/fleet/pull/41524 - https://github.com/fleetdm/fleet/pull/41674 --------- Co-authored-by: Jonathan Katz <44128041+jkatz01@users.noreply.github.com> Co-authored-by: jkatz01 <yehonatankatz@gmail.com> Co-authored-by: RachelElysia <71795832+RachelElysia@users.noreply.github.com> Co-authored-by: Jahziel Villasana-Espinoza <jahziel@fleetdm.com>
38 lines
930 B
TypeScript
38 lines
930 B
TypeScript
import React from "react";
|
|
import classnames from "classnames";
|
|
import Slider from "components/forms/fields/Slider";
|
|
|
|
const baseClass = "software-deploy-slider";
|
|
|
|
const LABEL_TOOLTIP =
|
|
"Automatically install only on hosts missing this software.";
|
|
|
|
interface ISoftwareDeploySliderProps {
|
|
deploySoftware: boolean;
|
|
onToggleDeploySoftware: () => void;
|
|
className?: string;
|
|
}
|
|
|
|
const SoftwareDeploySlider = ({
|
|
deploySoftware,
|
|
onToggleDeploySoftware,
|
|
className,
|
|
}: ISoftwareDeploySliderProps) => {
|
|
const sliderClassNames = classnames(`${baseClass}__container`, className);
|
|
|
|
return (
|
|
<div className={sliderClassNames}>
|
|
<Slider
|
|
value={deploySoftware}
|
|
onChange={onToggleDeploySoftware}
|
|
activeText="Deploy"
|
|
inactiveText="Deploy"
|
|
className={`${baseClass}__deploy-slider`}
|
|
labelTooltip={LABEL_TOOLTIP}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default SoftwareDeploySlider;
|