ESID icon indicating copy to clipboard operation
ESID copied to clipboard

Refactor Settings Dialog with Confirmation Dialog

Open NXXR opened this issue 1 year ago • 1 comments

Refactor the settings dialog that is used in the goup filter editor into a component.

As a pop-up dialog for settings with a confirmation dialog on close wheter to discard changes made will be necessary in many components in ESID in the future, i.e.:

  • Compartment filter editor
  • District map settings
  • Heat legend editor
  • NPI editor

Implementation ideas:

  • Component providing the main pop-up and the confirmation dialog.
    • receives children as props to render.
    • holds state whether children changed and passes function in props to change state (i.e. mark child components dirty/changed)

NXXR avatar Apr 24 '23 08:04 NXXR