diff --git a/src/view/modal_templates.py b/src/view/modal_templates.py index 2cfed33..c91ccf5 100644 --- a/src/view/modal_templates.py +++ b/src/view/modal_templates.py @@ -65,7 +65,7 @@ def generic_key_value_editor(title, element_list_getter, key, value = "value"): content.append(h("button", {"on": {"click": message.msg(message.AddToGenericList, element_list_getter)}}, "+")) return content -def sense_definitions_editor(title, type_value, explanation_value): +def sense_definitions_editor(type_value, explanation_value): type_props = {"value": type_value, "type": "text"} explanation_props = {"value": explanation_value, "type": "text"} return [ diff --git a/src/view/modals.py b/src/view/modals.py index 406f413..67e5a72 100644 --- a/src/view/modals.py +++ b/src/view/modals.py @@ -135,6 +135,7 @@ def edit_sense_definition(sense): explanation = x.value if indicator is not "": break + content = sense_definitions_editor(indicator, explanation) return modal_template(content, "Definicije pomena", (message.EditSenseDefinition, sense))