mirror of https://github.com/portainer/portainer
25 lines
603 B
TypeScript
25 lines
603 B
TypeScript
|
import { SwitchField } from '@@/form-components/SwitchField';
|
||
|
|
||
|
export function RetryDeployToggle({
|
||
|
value,
|
||
|
onChange,
|
||
|
}: {
|
||
|
value: boolean;
|
||
|
onChange: (value: boolean) => void;
|
||
|
}) {
|
||
|
return (
|
||
|
<div className="form-group">
|
||
|
<div className="col-sm-12">
|
||
|
<SwitchField
|
||
|
checked={value}
|
||
|
name="retryDeploy"
|
||
|
label="Retry deployment"
|
||
|
tooltip="When enabled, this will allow the edge agent to retry deployment if failed to deploy initially"
|
||
|
labelClass="col-sm-3 col-lg-2"
|
||
|
onChange={onChange}
|
||
|
/>
|
||
|
</div>
|
||
|
</div>
|
||
|
);
|
||
|
}
|