Actually reading examples, not just quick hack :)

This commit is contained in:
2020-01-24 01:46:58 +01:00
parent 420f48634d
commit 460a854dad
3 changed files with 88 additions and 12 deletions

View File

@@ -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))

View File

@@ -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", {}, ""),