Skip to content

Add warning when navigating away with unsaved changes in environment settings #4922

@tiagoapolo

Description

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

  1. Begin editing general settings in environment page (e.g., name, description)
  2. Switch to another environment (e.g., production) OR navigate away OR Switch env settings tabs without saving the changes.
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    front-endIssue related to the React Front End Dashboardgood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions