esprfid / esp-rfid

ESP8266 RFID (RC522, PN532, Wiegand, RDM6300) Access Control system featuring WebSocket, JSON, NTP Client, Javascript, SPIFFS
MIT License
1.37k stars 424 forks source link

Use correct label for extra relays when editing user #624

Closed mcnewton closed 8 months ago

mcnewton commented 8 months ago

The existing code copies the useracctype element to useracctypeN after the label has been changed to that of the first relay. This means that the user edit dialogue will show the same label for all relays, rather than the correct label for the relay in question. This sets the label after the element has been copied so they will all be correct.

matjack1 commented 8 months ago

Thank you so much for your contributions @mcnewton !

I'm going to review everything soon, sorry but in these last few months I've been busy with other stuff. I'll try everything in the next few days!

mcnewton commented 8 months ago

@matjack1 No worries, I know what it's like finding time to review PRs! Thanks for the cool project :)

matjack1 commented 8 months ago

Nice, thanks!