-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dashboard] Allow Reporting after Discarding Unsaved Changes #106026
[Dashboard] Allow Reporting after Discarding Unsaved Changes #106026
Conversation
Pinging @elastic/kibana-presentation (Team:Presentation) |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and confirmed it resolves the issue
@@ -329,6 +335,7 @@ export const useDashboardAppState = ({ | |||
if (refreshInterval) timefilter.setRefreshInterval(refreshInterval); | |||
} | |||
dispatchDashboardStateChange(setDashboardState(lastSavedState)); | |||
// setDashboardAppState((s) => ({ ...s, hasUnsavedChanges: false })); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably want to remove this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call!
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…#106026) Allowed dashboard diffing to happen in view mode to fix dashboard unsaved changes not updating after discard changes
…#106026) Allowed dashboard diffing to happen in view mode to fix dashboard unsaved changes not updating after discard changes
#106314) Allowed dashboard diffing to happen in view mode to fix dashboard unsaved changes not updating after discard changes
#106313) Allowed dashboard diffing to happen in view mode to fix dashboard unsaved changes not updating after discard changes
Summary
Fixes #105807 by allowing the dashboard diff checker to update the unsaved changes badge even while in view mode.
For maintainers