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

fix: change static legend's hide property to show #119

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

TCL735
Copy link
Contributor

@TCL735 TCL735 commented Jun 9, 2021

As part of influxdata/ui#1666

On the backend, static legend's properties must always be tracked. For hide there are really 3 states: true, false, or not set.

This is different than on the frontend, where Giraffe sees a lack of a "static legend" object to mean that static legend is not desired. And static legend's hide property is for convenience; it is a way to temporarily hide the static legend without removing (and later rebuilding) the entire object. Thus it is the static legend object itself that is analogous to the backend's hide property -- and has 3 states: staticLegend.hide is true, staticLegend.hide is false, or the lack of staticLegend.

Thus, on the backend we should change hide to show to accurately reflect "not set" to be the same as false.

@TCL735 TCL735 requested a review from glinton June 9, 2021 20:24
@TCL735 TCL735 merged commit 8ebd81c into master Jun 9, 2021
@TCL735 TCL735 deleted the fix_1666_static_legend_show_instead branch June 9, 2021 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants