mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 22:52:12 -03:00
Add filter button functionality and clean up recipe template scripts
- Implemented click handler for the filter button in FilterManager to toggle the filter panel. - Removed redundant recipe filter manager initialization from recipes.html for cleaner code. - Updated header.html to remove inline JavaScript for filter button, enhancing maintainability.
This commit is contained in:
@@ -21,6 +21,13 @@ export class FilterManager {
|
||||
initialize() {
|
||||
// Create base model filter tags
|
||||
this.createBaseModelTags();
|
||||
|
||||
// Add click handler for filter button
|
||||
if (this.filterButton) {
|
||||
this.filterButton.addEventListener('click', () => {
|
||||
this.toggleFilterPanel();
|
||||
});
|
||||
}
|
||||
|
||||
// Close filter panel when clicking outside
|
||||
document.addEventListener('click', (e) => {
|
||||
|
||||
Reference in New Issue
Block a user