Client - preferences labels update
This commit is contained in:
@ -19,8 +19,8 @@
|
||||
</dd>
|
||||
<dt>{{ $t('user.PROFILE.ASCENT_DATA') }}:</dt>
|
||||
<dd>{{ $t(`common.${display_ascent}`) }}</dd>
|
||||
<dt>{{ $t('user.PROFILE.START_ELEVATION_AT_ZERO') }}:</dt>
|
||||
<dd>{{ $t(`common.${startElevationAtZero}`) }}</dd>
|
||||
<dt>{{ $t('user.PROFILE.ELEVATION_CHART_START.LABEL') }}:</dt>
|
||||
<dd>{{ $t(`user.PROFILE.ELEVATION_CHART_START.${user.start_elevation_at_zero ? 'ZERO' : 'MIN_ALT'}`) }}</dd>
|
||||
</dl>
|
||||
<div class="profile-buttons">
|
||||
<button @click="$router.push('/profile/edit/preferences')">
|
||||
@ -56,7 +56,6 @@
|
||||
: languageLabels['en']
|
||||
)
|
||||
const fistDayOfWeek = computed(() => (props.user.weekm ? 'MONDAY' : 'SUNDAY'))
|
||||
const startElevationAtZero = computed(() => (props.user.start_elevation_at_zero ? 'TRUE' : 'FALSE'))
|
||||
const timezone = computed(() =>
|
||||
props.user.timezone ? props.user.timezone : 'Europe/Paris'
|
||||
)
|
||||
|
@ -101,7 +101,7 @@
|
||||
</div>
|
||||
<div class="form-items form-checkboxes">
|
||||
<span class="checkboxes-label">
|
||||
{{ $t('user.PROFILE.START_ELEVATION_AT_ZERO') }}
|
||||
{{ $t('user.PROFILE.ELEVATION_CHART_START.LABEL') }}
|
||||
</span>
|
||||
<div class="checkboxes">
|
||||
<label v-for="status in startElevationAtZeroData" :key="status.label">
|
||||
@ -114,7 +114,7 @@
|
||||
@input="updateStartElevationAtZero(status.value)"
|
||||
/>
|
||||
<span class="checkbox-label">
|
||||
{{ $t(`common.${status.label}`) }}
|
||||
{{ $t(`user.PROFILE.ELEVATION_CHART_START.${status.label}`) }}
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
@ -192,11 +192,11 @@
|
||||
]
|
||||
const startElevationAtZeroData = [
|
||||
{
|
||||
label: 'TRUE',
|
||||
label: 'ZERO',
|
||||
value: true
|
||||
},
|
||||
{
|
||||
label: 'FALSE',
|
||||
label: 'MIN_ALT',
|
||||
value: false
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user