Actually reading examples, not just quick hack :)
This commit is contained in:
@@ -37,7 +37,7 @@ def edit_sense_label(sense):
|
||||
|
||||
|
||||
def edit_example(example):
|
||||
content = question("Edit example", example.text)
|
||||
content = question("Edit example", example.text())
|
||||
return modal_template(content, "Edit Example", message.EditExampleTranslation(example))
|
||||
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ class View:
|
||||
return h("div.example", {}, [
|
||||
h("div.example-dot", {}, "▣"),
|
||||
h(example_tag, {}, [
|
||||
h("span.example-text", {"on": {"click": msg(ShowExampleMenu(example))} }, example.text),
|
||||
h("span.example-text", {"on": {"click": msg(ShowExampleMenu(example))} }, example.text()),
|
||||
h("div.example-translation-list", {}, [
|
||||
h("div.example-translation", {}, [
|
||||
h("span.example-arrow", {}, "↪"),
|
||||
|
||||
Reference in New Issue
Block a user