-
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
Fix auto closing new Vis modal when selecting Lens or navigating away with browser history #56998
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -145,8 +145,8 @@ class NewVisModal extends React.Component<TypeSelectionProps, TypeSelectionState | |||
params = this.props.addBasePath(visType.aliasUrl); | ||||
if (this.props.editorParams && this.props.editorParams.includes('addToDashboard')) { | ||||
params = `${params}?addToDashboard`; | ||||
this.props.onClose(); | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure, why this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could it be related to the modal having to stay open for OSS visualizations to pick the index pattern? Edit: Probably not, forgot they are not an "aliasUrl". Maybe @majagrubic knows more There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I understand you correctly, then this seems like handled separately: kibana/src/legacy/core_plugins/visualizations/public/np_ready/public/wizard/new_vis_modal.tsx Line 123 in 3c429b1
And then after search source is selected, code goes to that redirect function. |
||||
} | ||||
this.props.onClose(); | ||||
window.location.assign(params); | ||||
return; | ||||
} | ||||
|
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.
This is added for cases when we navigate away without interacting with dialog. E.g. back button in browser which navigates us to other app.