pdf viewer : add dl button unstyled

This commit is contained in:
isUnknown 2025-06-25 15:30:03 +02:00
parent 4e2757ae3a
commit 2e31a5f1aa

View file

@ -18,16 +18,24 @@
>{{ isCommentsOpen ? 'Masquer' : 'Afficher' }} les commentaires</span
>
</button>
<a
id="download-pdf"
class="btn btn--transparent btn--outline hidden"
data-icon="download"
:href="openedFile.url"
download
>
<span class="sr-only">Télécharger le fichier PDF</span>
</a>
<Comments v-if="isCommentsOpen" />
</template>
<script setup>
import Comments from '../comments/Comments.vue';
import { ref, watch } from 'vue';
import { ref, watch, computed, unref } from 'vue';
import { useDialogStore } from '../../stores/dialog';
import { storeToRefs } from 'pinia';
import { VPdfViewer, useLicense } from '@vue-pdf-viewer/viewer';
import { useRoute, useRouter } from 'vue-router';
const licenseKey =
import.meta.env.VITE_VPV_LICENSE ?? 'd0ab730a-ebba-4060-856c-76d322565645';