Skip to content

Commit

Permalink
fix(Proofs): fix ProofTypeChip display (typo in code). ref #1142
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Dec 26, 2024
1 parent 1dc75c9 commit 4e953fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ProofTypeChip.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<v-chip label size="small" :prepend-icon="getProofTypeIcon" density="comfortable">
<span v-if="proofType === 'GDPR_REQUEST'">
<span v-if="proofType === PROOF_TYPE_GDPR_REQUEST">
<a :href="OFF_WIKI_GDPR_REQUEST_URL" target="_blank">
{{ proofTypeName }}
{{ getProofTypeName }}
<v-icon size="x-small" icon="mdi-open-in-new" />
</a>
</span>
Expand All @@ -25,6 +25,7 @@ export default {
},
data() {
return {
PROOF_TYPE_GDPR_REQUEST: constants.PROOF_TYPE_GDPR_REQUEST,
OFF_WIKI_GDPR_REQUEST_URL: constants.OFF_WIKI_GDPR_REQUEST_URL,
}
},
Expand Down
2 changes: 2 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const PROOF_TYPE_PRICE_TAG = 'PRICE_TAG'
const PROOF_TYPE_PRICE_TAG_ICON = 'mdi-library-shelves'
const PROOF_TYPE_RECEIPT = 'RECEIPT'
const PROOF_TYPE_RECEIPT_ICON = 'mdi-receipt-text-outline'
const PROOF_TYPE_GDPR_REQUEST = 'GDPR_REQUEST'
const LOCATION_TYPE_OSM = 'OSM'
const LOCATION_TYPE_OSM_ICON = 'mdi-map-marker-outline'
const LOCATION_TYPE_ONLINE = 'ONLINE'
Expand Down Expand Up @@ -88,6 +89,7 @@ export default {
PROOF_TYPE_PRICE_TAG_ICON: PROOF_TYPE_PRICE_TAG_ICON,
PROOF_TYPE_RECEIPT: PROOF_TYPE_RECEIPT,
PROOF_TYPE_RECEIPT_ICON: PROOF_TYPE_RECEIPT_ICON,
PROOF_TYPE_GDPR_REQUEST: PROOF_TYPE_GDPR_REQUEST,
PROOF_TYPE_LIST: [
{key: PROOF_TYPE_PRICE_TAG, value: PROOF_TYPE_PRICE_TAG, icon: PROOF_TYPE_PRICE_TAG_ICON},
{key: PROOF_TYPE_RECEIPT, value: PROOF_TYPE_RECEIPT, icon: PROOF_TYPE_RECEIPT_ICON}
Expand Down

0 comments on commit 4e953fd

Please sign in to comment.