Skip to content

Commit

Permalink
#1 Fixing UX
Browse files Browse the repository at this point in the history
  • Loading branch information
woodthom2 committed Nov 6, 2022
1 parent 29cfeb3 commit e20d89c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions front_end/dash_callbacks/callbacks_view_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def find_similarity(_, tab, columns, data, filtered_rows, selected_rows, old_sim
:return:
"""
# if this was triggered by the tab, only run the calculation if it's the first time.
# TODO
if ctx.triggered_id == "tabs" and old_similarity_store is not None:
raise PreventUpdate
# TODO- have commented this out for better UX
# if ctx.triggered_id == "tabs" and old_similarity_store is not None:
# raise PreventUpdate

callback_context.response.set_cookie('harmony cookie', '1')

Expand Down
1 change: 1 addition & 0 deletions front_end/dash_layout/body.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
filter_action='native',
export_format="xlsx",
row_selectable=True,
filter_options={"case":"insensitive"},
style_cell={"font-size": "10pt", "font-family": "PT Sans", "textAlign": "left",
"background-color": "white"})])

Expand Down

0 comments on commit e20d89c

Please sign in to comment.