Skip to content

Commit

Permalink
fix: fixed download button was not rendering properly on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Sep 1, 2022
1 parent 19d5a29 commit 0f37681
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/apps/ui/components/dashboard/SessionDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,10 @@ function clearAndDismissDeleteALogModal() {
const modal = bootstrap.Modal.getOrCreateInstance(document.getElementById('delete-a-log'));
modal.hide();
}
function downloadVideo(url) {
window.location.href = url;
}
</script>
<template>
Expand Down Expand Up @@ -1469,14 +1473,14 @@ function clearAndDismissDeleteALogModal() {
<!-- right -->
<span class="d-flex justify-content-between gap-2">
<!-- download video -->
<a
:href="`/api/v1/videos/${log?.videos[0]?.id}/download`"
<button
@click="downloadVideo(`/api/v1/videos/${log?.videos[0]?.id}/download`)"
class="btn btn-sm btn-outline-dark"
type="button"
:class="{ disabled: !log?.videos?.length }"
>
<i class="bi bi-download"></i>
</a>
</button>
<!-- history -->
<button
Expand Down

0 comments on commit 0f37681

Please sign in to comment.