Skip to content

Commit

Permalink
add download icon on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Node-Karlsruhe committed Feb 10, 2023
1 parent 91bbd6f commit 1f29468
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ VC Verifier Changelog
WIP
---

- UI improvements

1.1.0 (2023-02-10)
---

- add PDF download of verified product passport
- use UTC time for credential PDF
- UI improvements
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/views/ProductPassport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
<h5 class="mb-0">Verified Product Passport</h5>
</div>
<div class="col-3 text-end">
<button :disabled="renderingPDF" @click="downloadProductPassportPDF"
<button @mouseover="hoverdownload = true" @mouseleave="hoverdownload = false"
:disabled="renderingPDF" @click="downloadProductPassportPDF"
class="btn btn-sm btn-outline-success">
<div v-if="renderingPDF" class="spinner-border text-secondary" role="status"
style="width: 1rem; height: 1rem;">
<span class="visually-hidden">Verifying...</span>
</div>
<i v-else class="bi-filetype-pdf" role="img" aria-label="PDF Download"></i>
<i v-else :class="[hoverdownload ? 'bi-cloud-download' : 'bi-filetype-pdf']" role="img"
aria-label="PDF Download"></i>
</button>
</div>
</div>
Expand Down Expand Up @@ -95,6 +97,7 @@ export default {
data() {
return {
toast: useToast(),
hoverdownload: false,
renderingPDF: false,
mainProps: {
'brand': 'Brand',
Expand Down

0 comments on commit 1f29468

Please sign in to comment.