mirror of
https://github.com/RoastSlav/quickdrop.git
synced 2025-12-30 19:20:14 -06:00
added a message that the file is being prepared for encrypted files
This commit is contained in:
@@ -7,4 +7,8 @@ function copyToClipboard() {
|
||||
}).catch(function (err) {
|
||||
console.error("Could not copy text: ", err);
|
||||
});
|
||||
}
|
||||
|
||||
function showPreparingMessage() {
|
||||
document.getElementById('preparingMessage').style.display = 'block';
|
||||
}
|
||||
@@ -86,10 +86,16 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="alert alert-info" id="preparingMessage" style="display: none;">
|
||||
Your file is being prepared for download. Please wait...
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-between mt-3 border-top pt-3">
|
||||
<a
|
||||
class="btn btn-success"
|
||||
id="downloadButton"
|
||||
th:href="@{/file/download/{id}(id=${file.id})}"
|
||||
th:onclick="${file.passwordHash != null} ? 'showPreparingMessage()' : ''"
|
||||
>
|
||||
Download
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user