mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-19 17:02:04 -03:00
refactor(recipes): unify controls and breadcrumb UI with model pages
- Replace inline controls+breadcrumb in recipes.html with shared includes - Add page_id conditionals in controls.html to adapt buttons per page type - Unify customFilterText selector to class-based in recipes.js - Add [data-action="find-duplicates"] event listener for unified button - Fix i18n keys to use recipes-specific translations on recipes page
This commit is contained in:
@@ -149,9 +149,10 @@ class RecipeManager {
|
||||
|
||||
_showCustomFilterIndicator() {
|
||||
const indicator = document.getElementById('customFilterIndicator');
|
||||
const textElement = document.getElementById('customFilterText');
|
||||
if (!indicator) return;
|
||||
const textElement = indicator.querySelector('.customFilterText');
|
||||
|
||||
if (!indicator || !textElement) return;
|
||||
if (!textElement) return;
|
||||
|
||||
// Update text based on filter type
|
||||
let filterText = '';
|
||||
@@ -250,6 +251,11 @@ class RecipeManager {
|
||||
bulkButton.addEventListener('click', () => window.bulkManager?.toggleBulkMode());
|
||||
}
|
||||
|
||||
const duplicatesButton = document.querySelector('[data-action="find-duplicates"]');
|
||||
if (duplicatesButton) {
|
||||
duplicatesButton.addEventListener('click', () => this.findDuplicateRecipes());
|
||||
}
|
||||
|
||||
const favoriteFilterBtn = document.getElementById('favoriteFilterBtn');
|
||||
if (favoriteFilterBtn) {
|
||||
favoriteFilterBtn.addEventListener('click', () => {
|
||||
|
||||
Reference in New Issue
Block a user