mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-08 08:49:52 +00:00
Fix display of gender label
Label already localized in serialization so not to be accessed as label.fr within vue component
This commit is contained in:
parent
49da62d364
commit
05bc69fd33
@ -80,7 +80,7 @@
|
|||||||
>
|
>
|
||||||
<option selected disabled >{{ $t('person.gender.placeholder') }}</option>
|
<option selected disabled >{{ $t('person.gender.placeholder') }}</option>
|
||||||
<option v-for="g in config.genders" :value="g.id" :key="g.id">
|
<option v-for="g in config.genders" :value="g.id" :key="g.id">
|
||||||
{{ g.label.fr }}
|
{{ g.label }}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
<label>{{ $t('person.gender.title') }}</label>
|
<label>{{ $t('person.gender.title') }}</label>
|
||||||
@ -337,6 +337,7 @@ export default {
|
|||||||
getGenders()
|
getGenders()
|
||||||
.then(genders => {
|
.then(genders => {
|
||||||
if ('results' in genders) {
|
if ('results' in genders) {
|
||||||
|
console.log('genders', genders.results)
|
||||||
this.config.genders = genders.results;
|
this.config.genders = genders.results;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user