UncleGrumpy / Moonlight_8266

ESP8266 WebSocket server to control a single RGB . With a moon themed web interface for use with a 3-D printed Moon lamp.
MIT License
2 stars 1 forks source link

Save Button does not provide feedback. #1

Closed UncleGrumpy closed 3 years ago

UncleGrumpy commented 3 years ago

When pressing the "Save Settings" button in the main window no feedback is provided to let the user know it worked. if they keep hammering the save button it will wear out the flash EEPROM fast! The button should be disabled if no change has been made or at least pop up a dialog to say it was successful.

UncleGrumpy commented 3 years ago

There is now a dialog after save operations that indicate if the preferences were successfully written to EEPROM or if the operation failed. The "Save Settings" button should now be disabled if the current color and mode match the stored values. This is needs a little more work to be bulletproof, the value needs to be tracked on the ESP, so the value can actually be checked against the real written value, and a websocket broadcast to inform the client of the status. But for now with a single client the current method should be sufficient.