multiword example should not have role="none" components

pull/1/head
Ozbolt Menegatti 4 years ago
parent 4cc3c2cdc6
commit fcd6f158a1

@ -54,17 +54,16 @@ def edit_example(example, sense):
h("span.example-component-button.example-component-collocate",
{"on": {"click": role_msg(idx, "collocate")}}, "C"),
h("span.example-component-button.example-component-other",
{"on": {"click": role_msg(idx, "other")}}, "O"),
h("span.example-component-button.example-component-none",
{"on": {"click": role_msg(idx, "none")}}, "N")]
{"on": {"click": role_msg(idx, "other")}}, "O")]
if example.is_multiword():
additional_class = ".example-component-no-space" if component.no_space else ""
click_message = message.msg(message.ExampleComponentSpace, example_original, idx)
result.append(h("span.example-component-button" + additional_class,
{"on":
{"click":
message.msg(message.ExampleComponentSpace, example_original, idx)}},
""))
{"on": {"click": click_message }}, ""))
else:
result.append(h("span.example-component-button.example-component-none",
{"on": {"click": role_msg(idx, "none")}}, "N"))
result.extend([
h("span.example-component-button",

Loading…
Cancel
Save