Closed v1r0x closed 9 years ago
should fix #14 and #37
Doesn't fix #14
Instead I now see:
edit: i tested with two contacts, only one of them has an address.
Yes, https://github.com/v1r0x/maps/blob/fix-contacts/js/script.js#L733 doesn't get updated, but all contacts are shown correctly.
@v1r0x It only fixes #37 then? I didn't have a closer look at the source of maps yet, so maybe you can describe what this has to do with https://github.com/v1r0x/maps/blob/fix-contacts/js/script.js#L733.
Do you have an idea how to fix #14?
It basically fixes both. The only thing which is currently broken is the progress bar. I'm not a javascript programmer and don't get the problem (should work as it did before).
The link I provided is the line where the total number of contacts is set. In my PR this is set to 0 (and I don't know why). This is why it displays the "x of 1" and infinty%
Is it possible to check if the address is undefined and only do the lookup if it is not?
@v1r0x how about checking if the addresse is undefined in the function toolKit.adresLookup()
?
Yes, I had a look at the code and this seems good. Thanks for the help! Should work now
@jancborchardt could you please take a look and confirm that this fixes your issue #14
@v1r0x It would be great if you could fix a small beauty issue. The loading bar should be reset at the beginning of loading the contacts. Otherwise you see the completed loading bar for a short time.
WOW! This looks great! And fixes #14 for me. The only issue is that the actual avatars are not shown, just these dark silhouettes for everyone.
But I suppose adding that functionality is for a separate pull request?
Yes, I think this is another problem (hopefully^^). Another problem: If a contact has more than one address, only one is shown
@jancborchardt yes this should be a different pull request Thanks for the feedback!
@v1r0x I think it is ok to just show one address per contact, but it is important that the 'preferred' address is chosen.
Should we merge it then? :+1: from me. @Henni if you think it’s good press the button. :)
Let's fix the loading bar in another PR.
check if address is set for current user and only display it if an address exists.