-
Notifications
You must be signed in to change notification settings - Fork 117
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
Read-only filter chips #3998
Read-only filter chips #3998
Conversation
…ate alert" dialog
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.
Just a small nit. Otherwise LGTM
let topListQuery: ReturnType<typeof getFilterSearchList> | undefined; | ||
|
||
$: if (isOpen) { | ||
topListQuery = getFilterSearchList(StateManagers, { |
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.
We should disable this query if it is readonly. Even though isOpen
is not set to true right now we might end up changing it. Perhaps just a comment would be enough to make sure future devs will keep it in mind?
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.
Kk, I just added the conditional now.
This PR refactors the filter chips to accommodate the "read-only" mode that we need for the Create Alert dialog in PR #3881.
Here are the normal, interactive chips:
Here are the read-only versions: