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

Copy/Paste of elements in OSD layout #2028

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Conversation

error414
Copy link
Contributor

Here is video to explain how to works: https://www.youtube.com/watch?v=-F0jJvEQK2w

It's a simple clipboard for layouts, it's easy to use. Two buttons copy and paste.

Copy: save curent layout to clipboard
Paste: apply layout from clipboard

Super simple.

@MrD-RC
Copy link
Collaborator

MrD-RC commented Apr 11, 2024

This is really cool. I think a Clear OSD option would be nice too.

@error414
Copy link
Contributor Author

it's a good idea, just set all "isVisible" to false and then it's variant of "paste" functionality. easy to do. I will add it.

@error414
Copy link
Contributor Author

error414 commented Apr 12, 2024

Clear functionality added, Buttons "paste" and "clear" send changes to FC, but for make changes permanents is still necessary to click to save button. I would say it's ok.

image

Devel brief: for copy array I used an old way "JSON.parse(JSON.stringify())", I didn't want to add next library to configurator, for example https://underscorejs.org/ . The library provided clone functionality. i think it's not needed to mess configurator with many libraries.

@error414 error414 marked this pull request as ready for review April 12, 2024 17:02
@DzikuVx DzikuVx added this to the 8.0 milestone Apr 15, 2024
@DzikuVx DzikuVx merged commit 2fdf1f3 into iNavFlight:master Apr 17, 2024
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.

3 participants