Add path preview feature in DownloadManager; update target path display on folder selection and input changes

This commit is contained in:
Will Miao
2025-02-16 09:50:12 +08:00
parent f7bc17951b
commit 36f7f33aa5
3 changed files with 130 additions and 1 deletions

View File

@@ -46,6 +46,14 @@
<!-- Step 3: Location Selection -->
<div class="download-step" id="locationStep" style="display: none;">
<div class="location-selection">
<!-- Move path preview to top -->
<div class="path-preview">
<label>Download Location Preview:</label>
<div class="path-display" id="targetPathDisplay">
<span class="path-text">Select a LoRA root directory</span>
</div>
</div>
<div class="input-group">
<label>Select LoRA Root:</label>
<select id="loraRoot"></select>
@@ -53,7 +61,6 @@
<div class="input-group">
<label>Target Folder:</label>
<div class="folder-browser" id="folderBrowser">
<!-- Folders will be dynamically inserted here -->
{% for folder in folders %}
{% if folder %}
<div class="folder-item" data-folder="{{ folder }}">