mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-09 20:39:25 -03:00
feat(recipe): add bulk Repair Metadata for Selected operation to recipes page
Adds a new bulk operation in the recipes page that allows users to select multiple recipes and repair their metadata in batch. Backend: - New POST /api/lm/recipes/repair-bulk endpoint accepting recipe_ids array - repair_recipes_bulk handler iterates repair_recipe_by_id for each recipe - Response includes per-recipe updated data for frontend card refresh Frontend: - Bulk context menu: new 'Repair Metadata for Selected' item in Metadata section - BulkManager.repairSelectedRecipes() with loading/toast flow - Uses VirtualScroller.updateSingleItem() per repaired recipe (no full reload) - Visibility controlled via repairMetadata actionConfig flag Locales: - Added repairMetadata, repairBulkComplete, repairBulkSkipped, repairBulkFailed - Translated across all 9 supported languages
This commit is contained in:
@@ -80,6 +80,9 @@
|
||||
<div class="context-menu-item" data-action="check-updates">
|
||||
<i class="fas fa-bell"></i> <span>{{ t('loras.bulkOperations.checkUpdates') }}</span>
|
||||
</div>
|
||||
<div class="context-menu-item" data-action="repair-metadata">
|
||||
<i class="fas fa-tools"></i> <span>{{ t('loras.bulkOperations.repairMetadata') }}</span>
|
||||
</div>
|
||||
<div class="context-menu-item" data-action="skip-metadata-refresh">
|
||||
<i class="fas fa-ban"></i> <span>{{ t('loras.bulkOperations.skipMetadataRefresh') }}</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user