Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a save to config items panel #12

Merged

Conversation

ronlawrence3
Copy link

@ronlawrence3 ronlawrence3 commented Mar 30, 2024

Adds some help and a save button to save to maslow.yaml and restart the esp32.

image

@ronlawrence3
Copy link
Author

@BarbourSmith Here is the PR for a save button. I think I can pretty easily add "help" tooltip icons to each maslow item without adding too much overhead. I'll see if I can get to that "soon"

@BarbourSmith
Copy link
Owner

This looks AMAZING!! Absolutely brilliant work.

I will test and merge today. This is going to save so many people so much headache with extra spaces breaking their files etc. HUGE.

Copy link
Owner

@BarbourSmith BarbourSmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splendid

@@ -208,10 +208,20 @@ function build_control_from_pos(pos, extra) {
return build_control_from_index(get_index_from_eeprom_pos(pos), extra)
}

function saveMaslowYaml() {
SendGetHttp('/command?plain=' + encodeURIComponent("$CD=/maslow.yaml"));
restart_esp();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need to restart? Since the settings are already on the machine and also in the .yaml file I'm not sure we need to do a restart

@BarbourSmith BarbourSmith merged commit 56b3e29 into BarbourSmith:Maslow-Main Mar 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants