From e20d89cd5a2b369fb2a9b0fd822019fde083e32e Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Sun, 6 Nov 2022 09:35:07 +0000 Subject: [PATCH] #1 Fixing UX --- front_end/dash_callbacks/callbacks_view_2.py | 6 +++--- front_end/dash_layout/body.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/front_end/dash_callbacks/callbacks_view_2.py b/front_end/dash_callbacks/callbacks_view_2.py index 85c6de6..97bf0ef 100644 --- a/front_end/dash_callbacks/callbacks_view_2.py +++ b/front_end/dash_callbacks/callbacks_view_2.py @@ -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') diff --git a/front_end/dash_layout/body.py b/front_end/dash_layout/body.py index 0b86a19..7126cb6 100644 --- a/front_end/dash_layout/body.py +++ b/front_end/dash_layout/body.py @@ -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"})])