rename ConfigSwitch onChange -> onCheckedChange

This commit is contained in:
mbecker20
2026-02-26 13:41:51 -08:00
parent 5089375211
commit e4147ccdaf
5 changed files with 6 additions and 6 deletions

View File

@@ -161,7 +161,7 @@ export default function ActionConfig({ id }: { id: string }) {
: false
}
disabled={disabled || !(update.schedule ?? config.schedule)}
onChange={(schedule_enabled) => set({ schedule_enabled })}
onCheckedChange={(schedule_enabled) => set({ schedule_enabled })}
/>
),
schedule_format: (schedule_format, set) => (

View File

@@ -284,7 +284,7 @@ export default function DeploymentConfig({
label="Poll for Updates"
description="Check for updates to the image during Global Auto Update."
value={autoUpdate || poll}
onChange={(poll_for_updates) => set({ poll_for_updates })}
onCheckedChange={(poll_for_updates) => set({ poll_for_updates })}
disabled={disabled || autoUpdate}
/>
);

View File

@@ -194,7 +194,7 @@ export default function ProcedureConfig({ id }: { id: string }) {
: false
}
disabled={disabled || !(update.schedule ?? config.schedule)}
onChange={(schedule_enabled) => set({ schedule_enabled })}
onCheckedChange={(schedule_enabled) => set({ schedule_enabled })}
/>
),
schedule_format: (schedule_format, set) => (

View File

@@ -371,7 +371,7 @@ export default function StackConfig({
label="Poll for Updates"
description="Check for updates to the image during Global Auto Update."
value={auto_update || poll}
onChange={(poll_for_updates) => set({ poll_for_updates })}
onCheckedChange={(poll_for_updates) => set({ poll_for_updates })}
disabled={disabled || auto_update}
/>
);
@@ -385,7 +385,7 @@ export default function StackConfig({
label="Full Stack Auto Update"
description="Always redeploy full stack instead of just specific services with update."
value={value}
onChange={(auto_update_all_services) =>
onCheckedChange={(auto_update_all_services) =>
set({ auto_update_all_services })
}
disabled={disabled || !auto_update}

View File

@@ -145,7 +145,7 @@ export default function ResourceSyncConfig({
label="Delete Unmatched Resources"
description="Executions will delete any resources not found in the resource files. Only use this when using one sync for everything."
value={managed || delete_mode}
onChange={(delete_mode) => set({ delete: delete_mode })}
onCheckedChange={(delete_mode) => set({ delete: delete_mode })}
disabled={disabled || managed}
/>
);