📥 Add download buttons for individual files and a "Download All from Server" option

This commit is contained in:
2026-01-28 19:10:00 +00:00
parent 201c3be2df
commit a169b1e698

View File

@@ -119,9 +119,22 @@
:key="file.filename" :key="file.filename"
class="file-item" class="file-item"
> >
<div class="file-info">
<span class="file-name">{{ file.filename }}</span> <span class="file-name">{{ file.filename }}</span>
<span class="file-size">{{ file.sizeKb }} KB</span> <span class="file-size">{{ file.sizeKb }} KB</span>
</div> </div>
<button
@click="downloadFromServer(file.filename)"
class="btn btn-small btn-success"
>
📥
</button>
</div>
</div>
<div v-if="serverStatus.totalFiles > 0" class="button-group" style="margin-top: 1rem;">
<button @click="downloadAllFromServer" class="btn btn-primary">
📦 Download All from Server
</button>
</div> </div>
</div> </div>
</div> </div>