lock <comp> in collocations
This commit is contained in:
parent
4812c18a1d
commit
c7a405fc46
|
@ -64,11 +64,12 @@ def edit_example(example, sense):
|
||||||
result.append(h("span.example-component-button.example-component-none",
|
result.append(h("span.example-component-button.example-component-none",
|
||||||
{"on": {"click": role_msg(idx, "none")}}, "N"))
|
{"on": {"click": role_msg(idx, "none")}}, "N"))
|
||||||
|
|
||||||
result.extend([
|
if "-" not in example.inner.other_attributes["structureName"]:
|
||||||
h("span.example-component-button",
|
result.extend([
|
||||||
{"on": {"click": message.msg(message.ExampleComponentAdd, example_original, idx)}}, "+"),
|
h("span.example-component-button",
|
||||||
h("span.example-component-button",
|
{"on": {"click": message.msg(message.ExampleComponentAdd, example_original, idx)}}, "+"),
|
||||||
{"on": {"click": message.msg(message.ExampleComponentRemove, example_original, idx)}}, "-")])
|
h("span.example-component-button",
|
||||||
|
{"on": {"click": message.msg(message.ExampleComponentRemove, example_original, idx)}}, "-")])
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user