eckinox / bolt-navigation-ui

A Bolt 5 extension that provides a user-friendly interface to manage navigations, straight from the admin section.
MIT License
12 stars 3 forks source link

Prevent deletion of custom config entries #6

Closed EmilePerron closed 2 years ago

EmilePerron commented 2 years ago

Some users may have added their own custom data in the menu configuration.

Ex.: the template key/value in this screenshot image

It would be nice if these non-standard configurations could be kept as-is when saving instead of deleting them.

One way of doing that would be to map out all of the non-standard values in an hidden input at page load (as a JSON object for example) and to simply re-add these at save time.

EmilePerron commented 2 years ago

This has been fixed in v1.0.0 (cff55c4)