refactor: Update folder loading to fetch dynamically from API in DownloadManager and MoveManager. Fixes #274

This commit is contained in:
Will Miao
2025-07-09 20:29:49 +08:00
parent 79011bd257
commit 79ab0f7b6c
3 changed files with 56 additions and 27 deletions

View File

@@ -48,13 +48,7 @@
<div class="input-group">
<label>Target Folder:</label>
<div class="folder-browser" id="folderBrowser">
{% for folder in folders %}
{% if folder %}
<div class="folder-item" data-folder="{{ folder }}">
{{ folder }}
</div>
{% endif %}
{% endfor %}
<!-- Folders will be loaded dynamically -->
</div>
</div>
<div class="input-group">
@@ -92,13 +86,7 @@
<div class="input-group">
<label>Target Folder:</label>
<div class="folder-browser" id="moveFolderBrowser">
{% for folder in folders %}
{% if folder %}
<div class="folder-item" data-folder="{{ folder }}">
{{ folder }}
</div>
{% endif %}
{% endfor %}
<!-- Folders will be loaded dynamically -->
</div>
</div>
<div class="input-group">