diff --git a/src/components/LocationCard.vue b/src/components/LocationCard.vue index 1eee455917..aeaa590143 100644 --- a/src/components/LocationCard.vue +++ b/src/components/LocationCard.vue @@ -10,6 +10,9 @@ {{ getLocationCategory(location) }} + + {{ getLocationOSMID(location) }} + @@ -27,11 +30,20 @@ export default { type: [Object, null], required: true }, + hideLocationOSMID: { + type: Boolean, + default: false + }, readonly: { type: Boolean, default: false } }, + computed: { + showLocationOSMID() { + return !this.hideLocationOSMID && this.appStore.user.username && this.appStore.user.location_display_osm_id + } + }, methods: { getLocationTitle(location) { if (location) { @@ -42,6 +54,9 @@ export default { getLocationCategory(location) { return utils.getLocationCategory(location) }, + getLocationOSMID(location) { + return utils.getLocationOSMID(location) + }, goToLocation(location) { if (this.readonly) { return diff --git a/src/components/LocationSelectorDialog.vue b/src/components/LocationSelectorDialog.vue index 8f7790e289..29a3976709 100644 --- a/src/components/LocationSelectorDialog.vue +++ b/src/components/LocationSelectorDialog.vue @@ -45,7 +45,7 @@

{{ getLocationTitle(location, true, false, false) }}

{{ getLocationTitle(location, false, true, true) }}
- + {{ getLocationCategory(location) }} + + {{ getLocationOSMID(location) }} +
- +

{{ getLocationTitle(location, true, false, false) }}

{{ getLocationTitle(location, false, true, true) }}
@@ -93,7 +96,7 @@ - + diff --git a/src/views/UserSettings.vue b/src/views/UserSettings.vue index eabbcf8b72..4949b4a325 100644 --- a/src/views/UserSettings.vue +++ b/src/views/UserSettings.vue @@ -8,6 +8,7 @@ +

{{ $t('Common.Country') }} @@ -19,6 +20,7 @@ item-title="native" item-value="code" /> +

{{ $t('Common.Language') }}

@@ -42,16 +44,19 @@

+

{{ $t('Common.Products') }}

+ +

+ {{ $t('Common.Locations') }} +

+
- - -