mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 14:42:11 -03:00
Refactor context menus to use ModelContextMenuMixin for shared functionality
- Introduced ModelContextMenuMixin to encapsulate shared methods for Lora and Checkpoint context menus. - Updated CheckpointContextMenu to utilize the mixin for common actions and NSFW level handling. - Simplified LoraContextMenu by integrating the mixin, removing redundant methods. - Removed duplicated NSFW handling logic and centralized it in the mixin. - Adjusted import/export statements to reflect the new structure and ensure proper functionality.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export { LoraContextMenu } from './LoraContextMenu.js';
|
||||
export { RecipeContextMenu } from './RecipeContextMenu.js';
|
||||
export { CheckpointContextMenu } from './CheckpointContextMenu.js';
|
||||
export { CheckpointContextMenu } from './CheckpointContextMenu.js';
|
||||
export { ModelContextMenuMixin } from './ModelContextMenuMixin.js';
|
||||
Reference in New Issue
Block a user