Skip to content

Commit

Permalink
fix: jans-cli hide menu item (#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar authored Jun 6, 2022
1 parent 37a9181 commit b70fc52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jans-cli/cli/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1824,8 +1824,9 @@ def display_menu(self, menu):

c = 0
for i, item in enumerate(menu):
if item.info.get('x-cli-ignore') or not item.children:
if item.info.get('x-cli-ignore') or (item.parent.name == 'Main Menu' and not item.children):
continue

print(c + 1, item)
selection_values.append(str(c + 1))
menu_numbering[c + 1] = i
Expand Down

0 comments on commit b70fc52

Please sign in to comment.