Working on ui

This commit is contained in:
Owen
2026-04-16 16:30:28 -07:00
parent a9d68bd0cf
commit c4308aaa69
3 changed files with 39 additions and 20 deletions

View File

@@ -186,6 +186,9 @@ export function HealthCheckCredenza(props: HealthCheckCredenzaProps) {
defaultValues: mode === "submit" ? DEFAULT_VALUES : {}
});
const watchedEnabled = form.watch("hcEnabled");
const watchedMode = form.watch("hcMode");
useEffect(() => {
if (!open) return;
@@ -378,6 +381,8 @@ export function HealthCheckCredenza(props: HealthCheckCredenzaProps) {
form={form}
showNameField={mode === "submit"}
hideEnabledField={mode === "submit"}
watchedEnabled={watchedEnabled}
watchedMode={watchedMode}
onFieldChange={
mode === "autoSave"
? handleFieldChange