enso-ui / ui

Laravel Enso UI
MIT License
9 stars 10 forks source link

Gender on profile page not displayed (enums.genders not working?) #22

Closed mauthi closed 5 years ago

mauthi commented 5 years ago

This is a bug.

Prerequisites

Description

If I open the profile page I get the following: image

No error or something else.

Steps to Reproduce

-

Expected behavior

In @enso-ui/ui/src/bulma/pages/administration/users/components/UserProfile.vue on Line 139 profile.person.gender has the value 2 and enums.genders._get(2) should return male.

Actual behavior

In @enso-ui/ui/src/bulma/pages/administration/users/components/UserProfile.vue on Line 139 profile.person.gender has the value 2 but enums.genders._get(2) does not return anything.

aocneanu commented 5 years ago

That's odd,

Could you check in vue devtools / console the output of $vm0.$store.state.enums.genders._get(2)?

mauthi commented 5 years ago

Could you check in vue devtools / console the output of $vm0.$store.state.enums.genders._get(2)?

Result: image

aocneanu commented 5 years ago

I really cannot reproduce this one. I tried locally, on laravel-enso.com and it works as expected.

Maybe you did something to customize the Enum.js ? Or maybe it has something to do with localisation?

$vm0.$store.state.enums.genders._get("2") is still undefined?

mauthi commented 5 years ago

I tried to reproduce this on laravel-enso.com and there it's also not working in German. So I think that it has todo something with localisation.

Please compare the following screenshots:

EN image

DE image

aocneanu commented 5 years ago

Ok, will look into it