Bug: Fix translated keys for availability statuses in Greek (#1050)

This commit is contained in:
Pranav Raj S 2020-07-15 22:55:57 +05:30 committed by GitHub
parent d5a6f5e352
commit 196741d975
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View file

@ -52,15 +52,15 @@
"LABEL": "Διαθεσιμότητα", "LABEL": "Διαθεσιμότητα",
"STATUSES_LIST": [ "STATUSES_LIST": [
{ {
"value": "στη γραμμή", "value": "online",
"label": "Στην Γραμμή" "label": "Στην Γραμμή"
}, },
{ {
"value": "απασχολημένος", "value": "busy",
"label": "Απασχολημένος" "label": "Απασχολημένος"
}, },
{ {
"value": "εκτός", "value": "offline",
"label": "Εκτός" "label": "Εκτός"
} }
] ]

View file

@ -42,7 +42,9 @@
{{ $t('PROFILE_SETTINGS.FORM.AVAILABILITY.LABEL') }} {{ $t('PROFILE_SETTINGS.FORM.AVAILABILITY.LABEL') }}
<select v-model="availability"> <select v-model="availability">
<option <option
v-for="status in availabilityStatuses" v-for="status in $t(
'PROFILE_SETTINGS.FORM.AVAILABILITY.STATUSES_LIST'
)"
:key="status.key" :key="status.key"
class="text-capitalize" class="text-capitalize"
:value="status.value" :value="status.value"
@ -133,9 +135,6 @@ export default {
passwordConfirmation: '', passwordConfirmation: '',
availability: 'online', availability: 'online',
isUpdating: false, isUpdating: false,
availabilityStatuses: this.$t(
'PROFILE_SETTINGS.FORM.AVAILABILITY.STATUSES_LIST'
),
}; };
}, },
validations: { validations: {