Skip to content

Commit

Permalink
fix enable button behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiepeng committed Oct 24, 2023
1 parent 24dc0a1 commit f07f70e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 13 deletions.
3 changes: 1 addition & 2 deletions views/heatmap_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,10 @@ def enable_heatmap_callback(
Update heatmap
"""
collapse = False
if heat_sw:
collapse = True

collapse = False

return {"collapse": collapse}


Expand Down
3 changes: 1 addition & 2 deletions views/histogram_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,10 @@ def enable_histogram_callback(
Update histogram
"""
collapse = False
if histogram_sw:
collapse = True

collapse = False

return {"collapse": collapse}


Expand Down
3 changes: 1 addition & 2 deletions views/parcats_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,10 @@ def enable_parallel_callback(
]
:rtype: list
"""
collapse = False
if parallel_sw:
collapse = True

collapse = False

return {"collapse": collapse}


Expand Down
4 changes: 1 addition & 3 deletions views/scatter_2d_left_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,10 @@ def enable_scatter2d_left_callback(
"""
Update left 2D scatter graph
"""

collapse = False
if left_sw:
collapse = True

collapse = False

return {"collapse": collapse}


Expand Down
3 changes: 1 addition & 2 deletions views/scatter_2d_right_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,10 @@ def enable_scatter2d_right_callback(
):
""" """

collapse = False
if right_sw:
collapse = True

collapse = False

return {"collapse": collapse}


Expand Down
3 changes: 1 addition & 2 deletions views/violin_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,10 @@ def enable_violin_callback(
:rtype: list
"""
collapse = False
if violin_sw:
collapse = True

collapse = False

return {"collapse": collapse}


Expand Down

0 comments on commit f07f70e

Please sign in to comment.