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(jans-cli-tui): default display function for JansVerticalNav #7718

Merged
merged 2 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion jans-cli-tui/cli_tui/plugins/010_auth_server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
])

Expand Down
6 changes: 6 additions & 0 deletions jans-cli-tui/cli_tui/wui_components/jans_vetrical_nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <b>F1</b> 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
Expand Down