Entry now redrawn only on data change

This commit is contained in:
2020-02-19 23:08:21 +01:00
parent f822aed45a
commit c0ca84a901
5 changed files with 20 additions and 41 deletions

View File

@@ -64,13 +64,6 @@ def edit_example(example, sense):
h("div.three-fifth", {}, middle),
h("div.one-fifth", {}, buttons_right(idx))]))
cluster = example.get_cluster()
if cluster is not None:
divs.append(h("hr", {}, []))
divs.append(h("div.flex.five.example-component", {}, [
h("div.one-fifth", {}, "Cluster"),
h("div.four-fifth", {}, show_toggle_cluster_buttons(sense, example))]))
return modal_template(divs, "Edit Example", (message.EditExampleText, example_original))