mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-28 11:49:39 -05:00
rename ConfigSwitch onChange -> onCheckedChange
This commit is contained in:
@@ -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) => (
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -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) => (
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user