Skip to content

Commit

Permalink
User settings: new option to show the Location OSM ID
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed May 31, 2024
1 parent 40403c6 commit de956a1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@
"AddPrice": "Add a price",
"AddToOFF": "Add to {name}",
"Country": "Country",
"Language": "Languages",
"Language": "Language",
"Locations": "Locations",
"Date": "Date",
"Delete": "Delete",
"Edit": "Edit",
Expand Down Expand Up @@ -379,6 +380,7 @@
"FavoriteCurrencies": "Favorite currencies",
"CurrencyRequired": "At least one currency is required",
"LanguageLabel": "Languages",
"LocationDisplayOSMID": "Display OSM ID",
"ProductDisplayBarcode": "Display barcode",
"Save": "Save",
"Title": "Settings",
Expand Down
1 change: 1 addition & 0 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const useAppStore = defineStore('app', {
proofs: [],
proofTotal: null,
product_display_barcode: false,
location_display_osm_id: false,
},
}),
getters: {
Expand Down
11 changes: 8 additions & 3 deletions src/views/UserSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<v-col cols="12" sm="6">
<v-card :title="$t('UserSettings.Display')" prepend-icon="mdi-laptop">
<v-divider />
<!-- Country -->
<v-card-text>
<h3 class="mb-1">
{{ $t('Common.Country') }}
Expand All @@ -19,6 +20,7 @@
item-title="native"
item-value="code"
/>
<!-- Language -->
<h3 class="mb-1">
{{ $t('Common.Language') }}
</h3>
Expand All @@ -42,16 +44,19 @@
<v-icon size="small" icon="mdi-open-in-new" />
</a>
</p>
<!-- Products -->
<h3 class="mt-4 mb-1">
{{ $t('Common.Products') }}
</h3>
<!-- Locations -->
<v-checkbox v-model="appStore.user.product_display_barcode" :label="$t('UserSettings.ProductDisplayBarcode')" hide-details="auto" />
<h3 class="mt-4 mb-1">
{{ $t('Common.Locations') }}
</h3>
<v-checkbox v-model="appStore.user.location_display_osm_id" :label="$t('UserSettings.LocationDisplayOSMID')" hide-details="auto" />
</v-card-text>
</v-card>
</v-col>
</v-row>

<v-row>
<v-col cols="12" sm="6">
<v-card :title="$t('UserSettings.AddingPrices')" prepend-icon="mdi-tag-plus-outline">
<v-divider />
Expand Down

0 comments on commit de956a1

Please sign in to comment.