Enabling the use of choosing example cluster in modal and correct superscript

This commit is contained in:
Ozbolt Menegatti 2020-01-28 23:28:22 +01:00
parent 9a184011c1
commit 788a8eca01
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ class EditEntryLabels(Message):
model.entry.labels = labels
class ExampleClusterEdit(Message):
class ExampleClusterEdit(NoReset):
def update_model(self, model):
example = self.get_arg(0, Example)
cluster = self.get_arg(1, int)

View File

@ -121,7 +121,7 @@ class View:
example_content = []
if cluster is not None:
example_content.append(h("span.example-cluster", {}, str(cluster)))
example_content.append(h("span.example-cluster", {}, NUM2STR[cluster]))
example_text_inner_tag = "span.example-text-{}".format(example.get_view_type())
example_content.append(h(example_text_inner_tag, {}, example.text()))