Resolve confirm discard modal showing when saving a new custom dashboard
What does this MR do and why?
Fixes an issue where the confirm discard modal would get rendered after saving a new dashboard for Confirm discard changes modal is shown when sav... (#428757 - closed).
This happened because when a new dashboard is saved we redirect to it, triggering the router hook. The fix is to ignore the confirmation if we're busy saving.
Screenshots or screen recordings
Before | After |
---|---|
Screen_Recording_2023-10-20_at_16.49.24 | Screen_Recording_2023-10-20_at_16.48.14 |
How to set up and validate locally
- Follow these instructions to setup Product Analytics in GDK.
- Onboard
Product Analytics
by setting up the feature at Project > Analytics > Analytics dashboards. - Navigate back to Project > Analytics > Analytics dashboards and click on
New dashboard
at the top right. - Create a dashboard with a custom description and click save.
- Confirm that the modal no longer shows.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #428757 (closed)
Edited by Jiaan Louw