changing the befaviour of examples_shown button

This commit is contained in:
Ozbolt Menegatti 2020-04-22 14:22:23 +02:00
parent f609177d33
commit 62a1fd5cf1

View File

@ -16,7 +16,6 @@ class Example(Data):
self.inner = None
self.components = []
def import_xml(self, example_xml):
self.translations = from_container_list(example_xml.querySelectorAll("translationContainer"))
@ -67,9 +66,9 @@ class Example(Data):
if "logDice" in other_attributes:
example_content.append(h("span.example-logdice", {}, other_attributes["logDice"]))
parent_display = "inherit"
if not model.examples_shown and not self.is_multiword():
parent_display = "none"
parent_display = "none"
if model.examples_shown or self.is_multiword() or len(self.translations) > 0:
parent_display = "inherit"
clusters_display = "inherit"
if not model.clusters_shown: