Browse Source

feat: add conditional rendering for claim certificate link and update gitignore

- Add v-if directive to show claim certificate link only when veriClaim.id exists
- Update .gitignore to exclude android app resource directory
- Prevents broken links when claim data is not fully loaded
- Improves build process by ignoring generated Android resources

This change ensures the certificate link is only displayed when there's
valid claim data available, preventing navigation errors and improving
user experience. The gitignore update helps keep the repository clean
by excluding Android-specific generated files.
master
Matthew Raymer 2 days ago
parent
commit
f2ddcd2541
  1. 1
      .gitignore
  2. 1
      src/views/ClaimView.vue

1
.gitignore

@ -55,3 +55,4 @@ build_logs/
icons
android/app/src/main/res/

1
src/views/ClaimView.vue

@ -46,6 +46,7 @@
</h2>
<div class="flex justify-center w-full">
<router-link
v-if="veriClaim.id"
:to="'/claim-cert/' + encodeURIComponent(veriClaim.id)"
class="text-blue-500 mt-2"
title="Printable Certificate"

Loading…
Cancel
Save