mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 13:19:54 +01:00
chore(note_actions): reintroduce disabled logic for toggles
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user