Add warning when navigating away with unsaved changes in environment settings #4922
Open
Description
opened on Dec 16, 2024
Is your feature request related to a problem? Please describe.
Currently, there is no warning displayed when navigating between environments while editing settings. This can result in losing any unsaved changes.
Steps to Reproduce
- Begin editing general settings in environment page (e.g., name, description)
- Switch to another environment (e.g., production) OR navigate away OR Switch env settings tabs without saving the changes.
- Observe that the unsaved changes are lost without any warning.
Describe the solution you'd like.
A warning or confirmation dialog should appear if there are unsaved changes in general env setting tab, informing that the changes will be lost if the user navigates away
Describe alternatives you've considered
Watch for field changes in general setting tab in environment page settings and show warning if the url changes.
Additional context
No response
Activity