Skip to content

Commit cf45696

Browse files
committed
Add descriptions from json_schema
1 parent ca1a965 commit cf45696

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/fourc_webviewer/gui_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,9 @@ def _prop_value_table():
451451
with html.Td(classes="text-center"):
452452
html.P(v_text=("item_key",))
453453
html.P(
454-
v_text=("json_schema['properties']['IO']['properties']['STDOUTEVERY']['description']",),
454+
v_if=("json_schema['properties']?.[selected_section_name]?.['properties']?.[item_key]?.['description']",),
455+
v_text=("json_schema['properties']?.[selected_section_name]?.['properties']?.[item_key]?.['description'] || 'no description'",),
455456
style="font-size: 0.8em; color: #aaa; padding-left: 20px; padding-right: 20px;",
456-
# Optionales v_if, falls manche Keys gar keine Beschreibung haben:
457-
# v_if=("descriptions[item_key] !== undefined",),
458457
)
459458
html.Td(
460459
v_if="edit_mode == all_edit_modes['view_mode']",

0 commit comments

Comments
 (0)