Entry now redrawn only on data change
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user