pdf viewer : add dl button unstyled
This commit is contained in:
parent
4e2757ae3a
commit
2e31a5f1aa
1 changed files with 10 additions and 2 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue