Adding variants and labels to entry, not yet done.

This commit is contained in:
2019-11-18 20:27:11 +01:00
parent a058a50017
commit 4bdb3bfc7f
8 changed files with 68 additions and 19 deletions

View File

@@ -46,6 +46,13 @@ class ShowCommentEdit(ClickMessage):
model.modal = lambda: modals.edit_comment(model.entry.comment)
class ShowVariantsEdit(ClickMessage):
def update_model(self, model):
model.modal_shown = True
model.entry.make_copy()
model.modal = lambda: modals.edit_variants(model.entry)
class ShowExampleEdit(ClickMessage):
def update_model(self, model):
model.modal_shown = True