Skip to content

Commit

Permalink
remove reduandant download function
Browse files Browse the repository at this point in the history
  • Loading branch information
radek00 committed Nov 12, 2023
1 parent ed8f9df commit 207b6b1
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions SecureSend/ClientApp/src/views/FileDownloadView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ const setUpWorker = () => {
if (!props.isPasswordProtected) setUpWorker();
const download = (url: string) => {
const anchor = document.createElement("a");
anchor.href = url;
document.body.appendChild(anchor);
anchor.click();
};
const isPasswordValid = ref<boolean>();
const verifyPassword = async () => {
Expand Down Expand Up @@ -70,13 +63,7 @@ const isPasswordValidComputed = computed(
<template #cardBottom>
<a
class="font-medium text-blue-500 hover:underline"
href="#"
@click.prevent
@click="
download(
`${endpoints.download}?id=${secureUpload.secureUploadId}&fileName=${file.fileName}`
)
"
:href="`${endpoints.download}?id=${secureUpload.secureUploadId}&fileName=${file.fileName}`"
>Download</a
>
</template>
Expand Down

0 comments on commit 207b6b1

Please sign in to comment.