Update lora archive icon to loraManager and remove redundant status section
- Changed icon mapping for lora-archive, lora_manager_archive, and lora-manager-archive from 'archive' to 'loraManager' - Added new loraManager SVG icon in icon_utils.js - Removed redundant 'Not needed' status display before search controls in download section
This commit is contained in:
+3
-7
@@ -545,9 +545,9 @@ class LinkerManagerDialog extends ComfyDialog {
|
||||
'model-list': 'database',
|
||||
huggingface: 'huggingface',
|
||||
civitai: 'civitai',
|
||||
'lora-archive': 'archive',
|
||||
lora_manager_archive: 'archive',
|
||||
'lora-manager-archive': 'archive',
|
||||
'lora-archive': 'loraManager',
|
||||
lora_manager_archive: 'loraManager',
|
||||
'lora-manager-archive': 'loraManager',
|
||||
local: 'database',
|
||||
'workflow-url': 'link',
|
||||
workflow: 'link',
|
||||
@@ -4695,10 +4695,6 @@ class LinkerManagerDialog extends ComfyDialog {
|
||||
if (perfectMatches.length > 0) {
|
||||
// Has perfect local match - download not needed, but allow online re-check.
|
||||
html += `<div class="ml-download-section">`;
|
||||
html += `<div class="ml-status-inline">`;
|
||||
html += this.getStatusBadge('Not needed', 'neutral');
|
||||
html += `<span class="ml-download-info">Exact local match available</span>`;
|
||||
html += `</div>`;
|
||||
html += this.renderSearchControls(missing, { buttonText: 'Search Online' });
|
||||
html += this.renderDownloadTargetControls(missing, missing.category || 'checkpoints');
|
||||
html += `</div>`;
|
||||
|
||||
@@ -9,6 +9,7 @@ const SVG_ICONS = {
|
||||
externalLink: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="{color}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg>`,
|
||||
database: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="{color}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><ellipse cx="12" cy="5" rx="8" ry="3"></ellipse><path d="M4 5v6c0 1.7 3.6 3 8 3s8-1.3 8-3V5"></path><path d="M4 11v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6"></path></svg>`,
|
||||
archive: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="{color}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16"></path><path d="M5 7l1 14h12l1-14"></path><path d="M8 7V3h8v4"></path><path d="M10 12h4"></path></svg>`,
|
||||
loraManager: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" aria-hidden="true"><rect width="400" height="400" fill="#d3e3e6"></rect><path fill="#1e406e" d="M127 101h55v132h62l41 55H127z"></path></svg>`,
|
||||
star: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="{color}" stroke="{color}" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><path d="M12 3.5l2.55 5.16l5.7.83l-4.13 4.02l.98 5.68L12 16.52l-5.1 2.67l.98-5.68L3.75 9.49l5.7-.83L12 3.5z"></path></svg>`,
|
||||
link: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="{color}" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.07 0l2-2a5 5 0 0 0-7.07-7.07l-1.14 1.14"></path><path d="M14 11a5 5 0 0 0-7.07 0l-2 2A5 5 0 0 0 12 20.07l1.14-1.14"></path></svg>`,
|
||||
globe: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="{color}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"></circle><path d="M3 12h18"></path><path d="M12 3a14.5 14.5 0 0 1 0 18"></path><path d="M12 3a14.5 14.5 0 0 0 0 18"></path></svg>`,
|
||||
|
||||
Reference in New Issue
Block a user