-
Notifications
You must be signed in to change notification settings - Fork 23
Move saved-search-editor up to parent component #1487
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
Move saved-search-editor up to parent component #1487
Conversation
Thanks for tackling this. One thing to note:
If the interaction happens in a sub component and needs to let an ancestor component know, it should raise an event. [1] |
I see - I'll update the implementation to use this paradigm. 🙂 |
frontend/src/static/js/components/webstatus-overview-content.ts
Outdated
Show resolved
Hide resolved
frontend/src/static/js/components/webstatus-overview-content.ts
Outdated
Show resolved
Hide resolved
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.
LGTM with one suggestion/question.
This change fixes some known stacking issues which caused some elements to render above the saved search dialog. The webstatus-saved-search-editor component now lives in the webstatus-overview-content component, which alleviates stacking issues.
A new event,
open-saved-search-editor
, is dispatched in webstatus-saved-search-controls, and handled in webstatus-overview-content, to trigger the open action of the saved search dialog.All tests have been moved and adjusted, the the overall number not being changed.