mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 13:42:12 -03:00
- Add download-related methods to baseModelApi.js for fetching versions, roots, folders, and downloading models - Replace separate download managers with a unified DownloadManager.js supporting all model types - Create a single download_modals.html template that adapts to model type (LoRA, checkpoint, etc.) - Remove old download modals from lora_modals.html and checkpoint_modals.html - Update apiConfig.js to include civitaiVersions endpoints for each model type - Centralize event handler binding in DownloadManager.js (no more inline HTML handlers) - Modal UI and logic now auto-adapt to the current model type, making future extension easier
36 lines
1.5 KiB
HTML
36 lines
1.5 KiB
HTML
<!-- Move Model Modal -->
|
|
<div id="moveModal" class="modal">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h2 id="moveModalTitle">Move Model</h2>
|
|
<span class="close" onclick="modalManager.closeModal('moveModal')">×</span>
|
|
</div>
|
|
<div class="location-selection">
|
|
<div class="path-preview">
|
|
<label>Target Location Preview:</label>
|
|
<div class="path-display" id="moveTargetPathDisplay">
|
|
<span class="path-text">Select a LoRA root directory</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="input-group">
|
|
<label>Select LoRA Root:</label>
|
|
<select id="moveLoraRoot"></select>
|
|
</div>
|
|
<div class="input-group">
|
|
<label>Target Folder:</label>
|
|
<div class="folder-browser" id="moveFolderBrowser">
|
|
<!-- Folders will be loaded dynamically -->
|
|
</div>
|
|
</div>
|
|
<div class="input-group">
|
|
<label for="moveNewFolder">New Folder (optional):</label>
|
|
<input type="text" id="moveNewFolder" placeholder="Enter folder name" />
|
|
</div>
|
|
</div>
|
|
<div class="modal-actions">
|
|
<button class="cancel-btn" onclick="modalManager.closeModal('moveModal')">Cancel</button>
|
|
<button class="primary-btn" onclick="moveManager.moveModel()">Move</button>
|
|
</div>
|
|
</div>
|
|
</div> |