cozy / cozy-contacts-v2

Contact books manager for Cozy
http://cozy.io
GNU Affero General Public License v3.0
20 stars 20 forks source link

Label dropdown not updated on label insertion #290

Open Phyks opened 7 years ago

Phyks commented 7 years ago

Hi,

(Tested on cozy contacts v2.1.11)

  1. Start from a contact without labels, click "Labels"
  2. Click "Add a new label", put some text, type enter
  3. Label is added below the contact name, but not in the labels dropdown (see screenshot, I added a "Fabelier" label).
capture d ecran 2016-09-13 a 17 27 35

Repeat steps 2 and 3 with the exact same name, the user will get the label twice below his name.

capture d ecran 2016-09-13 a 17 30 06

Then, close the contact popover, reopen it, the labels dropdown is still not updated and the two identical labels are still there below his name. Even going back to home does not trigger a refresh of this part. Refresh does happen after some time, but I am not sure which action forced it, except for a restart of the app.

Thanks

Phyks commented 7 years ago

Similarly, an empty birthday field is not removed as well, until the contacts app restarts.

Phyks commented 7 years ago

I checked this against v2.1.14. Label is now added in the label list on insertion, which fixes part of the issues. Remaining issues are: