sense labels now proper label list
This commit is contained in:
@@ -25,15 +25,9 @@ def edit_translation(translation, cluster_idx, num_clusters, cls):
|
||||
|
||||
|
||||
def edit_sense_label(sense):
|
||||
content = [h("span", {}, "Edit sense labels")]
|
||||
content = label_list_editor(sense.copy().labels, message.AddToLabelList(sense.copy().labels))
|
||||
return modal_template(content, "Translation", message.EditSenseLabel(sense))
|
||||
|
||||
for slabel in sense.copy().labels:
|
||||
content.append(h("label", {}, [
|
||||
h("input.sense-edit-input", {"props": {"type": "text", "value": slabel}}, "")]))
|
||||
|
||||
content.append(h("button", {"on": {"click": message.msg(message.AddSenseLabel(sense))}}, "+"))
|
||||
|
||||
return modal_template(content, "Sense", message.EditSenseLabel(sense))
|
||||
|
||||
|
||||
def edit_example_translation(example):
|
||||
|
||||
Reference in New Issue
Block a user