Skip to content

Commit

Permalink
fix(proof card): fix display of proof location after upload. ref #657
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Jun 24, 2024
1 parent e830624 commit e5510ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/LocationChip.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-chip label size="small" prepend-icon="mdi-map-marker-outline" density="comfortable" :color="locationMissingAndShowError ? 'error' : 'default'" @click="goToLocation()">
<span v-if="locationId">{{ locationTitle }}</span>
<span v-if="locationNotMissing">{{ locationTitle }}</span>
<span v-if="locationEmoji" style="margin-inline-start:5px">{{ locationEmoji }}</span>
<span v-else-if="locationMissingAndShowError">
<i class="text-lowercase">{{ $t('Common.Location') }}</i>
Expand Down Expand Up @@ -46,8 +46,11 @@ export default {
}
return null
},
locationNotMissing() {
return this.location || this.locationId
},
locationMissingAndShowError() {
return !this.locationId && this.showErrorIfLocationMissing
return !this.locationNotMissing && this.showErrorIfLocationMissing
}
},
methods: {
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@
"Currency": "Currency",
"CurrencyMissing": "Currency missing",
"Language": "Languages",
"Location": "Location",
"Locations": "Locations",
"LocationMissing": "Location missing",
"Date": "Date",
"DateMissing": "Date missing",
"Details": "Details",
Expand Down

0 comments on commit e5510ef

Please sign in to comment.