diff --git a/src/components/LocationChip.vue b/src/components/LocationChip.vue index dd9b82a4d1..9059fd0c18 100644 --- a/src/components/LocationChip.vue +++ b/src/components/LocationChip.vue @@ -1,8 +1,13 @@ @@ -23,6 +28,10 @@ export default { type: Boolean, default: false }, + showErrorIfLocationMissing: { + type: Boolean, + default: false + } }, computed: { locationTitle() { @@ -36,11 +45,14 @@ export default { return utils.getCountryEmojiFromCode(this.location.osm_address_country_code) } return null + }, + locationMissingAndShowError() { + return !this.locationId && this.showErrorIfLocationMissing } }, methods: { goToLocation() { - if (this.readonly) { + if (!this.locationId || this.readonly) { return } this.$router.push({ path: `/locations/${this.locationId}` }) diff --git a/src/components/ProofFooter.vue b/src/components/ProofFooter.vue index c7bbe2bdd6..23c7441743 100644 --- a/src/components/ProofFooter.vue +++ b/src/components/ProofFooter.vue @@ -2,7 +2,7 @@ - + diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 0de15741ed..8cc606a3e4 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -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",