chore(note_actions): reintroduce disabled logic for toggles

This commit is contained in:
Elian Doran
2025-12-10 20:20:21 +02:00
parent 01978dabf0
commit efb2f9a048
2 changed files with 21 additions and 4 deletions

View File

@@ -141,7 +141,9 @@ export function FormListToggleableItem({ title, currentValue, onChange, ...props
return (
<FormListItem {...props} onClick={(e) => {
e.stopPropagation();
onChange(!currentValue);
if (!props.disabled) {
onChange(!currentValue);
}
}}>
<FormToggle
switchOnName={title} switchOffName={title}