Skip to content
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

feat(discover): Disable other y axis options when in a display mode that doesnt support multi y axis #29450

Conversation

edwardgou-sentry
Copy link
Contributor

@edwardgou-sentry edwardgou-sentry commented Oct 20, 2021

When in a Display Mode that doesn't support multi y axis selection (like World Map and Top Period), hide the checkbox for Y-Axis options:
image

Display modes that support multi y will still have checkboxes:
image

@edwardgou-sentry edwardgou-sentry requested review from a team October 20, 2021 20:39
@edwardgou-sentry edwardgou-sentry requested a review from a team as a code owner October 20, 2021 20:39
Copy link
Member

@wmak wmak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -140,7 +140,8 @@ class OptionCheckboxSelector extends Component<Props, State> {
title={
disabled
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on removing the checkbox entirely instead of disabling it instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this idea! I've made the update to just hide the checkbox instead on views that don't support multi y axis

@edwardgou-sentry edwardgou-sentry merged commit 985f97b into master Oct 22, 2021
@edwardgou-sentry edwardgou-sentry deleted the feat/discover-disable-multi-y-selection-by-display-mode branch October 22, 2021 14:24
@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants