From c0bc372a7981dcedd3c417f95531460d175fe637 Mon Sep 17 00:00:00 2001 From: Mustafa Baser Date: Wed, 14 Feb 2024 10:25:55 +0300 Subject: [PATCH] fix(jans-cli-tui): default display function for JansVerticalNav Signed-off-by: Mustafa Baser --- jans-cli-tui/cli_tui/plugins/010_auth_server/main.py | 3 ++- jans-cli-tui/cli_tui/wui_components/jans_vetrical_nav.py | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/jans-cli-tui/cli_tui/plugins/010_auth_server/main.py b/jans-cli-tui/cli_tui/plugins/010_auth_server/main.py index 3aabe5e947a..e286fc54d0d 100755 --- a/jans-cli-tui/cli_tui/plugins/010_auth_server/main.py +++ b/jans-cli-tui/cli_tui/plugins/010_auth_server/main.py @@ -584,7 +584,8 @@ def add_property(**params: Any) -> None: selectes=0, headerColor=cli_style.navbar_headcolor, entriesColor=cli_style.navbar_entriescolor, - all_data=missing_properties + all_data=missing_properties, + on_display=lambda **params: None ) ]) diff --git a/jans-cli-tui/cli_tui/wui_components/jans_vetrical_nav.py b/jans-cli-tui/cli_tui/wui_components/jans_vetrical_nav.py index 7c3c2fde1eb..a37e754c7d8 100644 --- a/jans-cli-tui/cli_tui/wui_components/jans_vetrical_nav.py +++ b/jans-cli-tui/cli_tui/wui_components/jans_vetrical_nav.py @@ -96,11 +96,17 @@ def __init__( self.headerColor = headerColor self.entriesColor = entriesColor self.max_height = max_height + if not is_formatted_text(jans_help): jans_help = HTML(jans_help) self.jans_help = merge_formatted_text([HTML(_("Press F1 for Help.") + " "), jans_help]) + self.on_enter = on_enter self.on_delete = on_delete + + if not on_display: + on_display = self.myparent.data_display_dialog + self.on_display = on_display self.change_password = change_password self.hide_headers = hide_headers