showing multiword while hiding examples
This commit is contained in:
parent
5f298cd185
commit
437883701a
|
@ -44,6 +44,9 @@ class Example(Editable):
|
||||||
def is_collocation(self):
|
def is_collocation(self):
|
||||||
return self.get_view_type() == 2
|
return self.get_view_type() == 2
|
||||||
|
|
||||||
|
def is_multiword(self):
|
||||||
|
return self.get_view_type() != 1
|
||||||
|
|
||||||
def get_view_type(self):
|
def get_view_type(self):
|
||||||
# as per the bosses, these are the rules for different colors
|
# as per the bosses, these are the rules for different colors
|
||||||
if type(self.inner) is CorpusExample:
|
if type(self.inner) is CorpusExample:
|
||||||
|
|
|
@ -138,7 +138,7 @@ class View:
|
||||||
example_content.append(h("span.example-logdice", {}, example.other_attributes["logDice"]))
|
example_content.append(h("span.example-logdice", {}, example.other_attributes["logDice"]))
|
||||||
|
|
||||||
parent_display = "inherit"
|
parent_display = "inherit"
|
||||||
if not model.examples_shown and not example.is_collocation():
|
if not model.examples_shown and not example.is_multiword():
|
||||||
parent_display = "none"
|
parent_display = "none"
|
||||||
|
|
||||||
clusters_display = "inherit"
|
clusters_display = "inherit"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user