refactor(context-menu): replace static checked with reactive subscribe+getChecked

This commit is contained in:
Jannis Braun
2026-03-24 21:47:16 +01:00
parent f21a1f75ce
commit 2513ba10e7
+2 -1
View File
@@ -21,7 +21,8 @@ export interface ContextMenuAction extends ContextMenuItemBase {
export interface ContextMenuCheckbox extends ContextMenuItemBase {
type: 'checkbox';
label: string;
checked: boolean;
subscribe: (onStoreChange: () => void) => () => void;
getChecked: () => boolean;
onChange: (checked: boolean) => void;
}