Example translation editing
This commit is contained in:
@@ -51,6 +51,7 @@ class ShowSenseAdd(GenericShowModal):
|
||||
model.modal = lambda: modals.add_sense(NewSense())
|
||||
|
||||
|
||||
# I don't need GenericShowModal since there is only one comment
|
||||
class ShowCommentEdit(ClickMessage):
|
||||
def update_model(self, model):
|
||||
model.modal_shown = True
|
||||
@@ -63,6 +64,14 @@ class ShowExampleEdit(GenericShowModal):
|
||||
model.modal = lambda: modals.edit_example(self.arg)
|
||||
|
||||
|
||||
class ShowExampleTranslationEdit(GenericShowModal):
|
||||
def update_model(self, model):
|
||||
super().update_model(model)
|
||||
example = self.arg
|
||||
example.make_copy()
|
||||
model.modal = lambda: modals.edit_example_translation(example)
|
||||
|
||||
|
||||
class ShowEditTranslation(GenericShowModal):
|
||||
def update_model(self, model):
|
||||
model.modal_shown = True
|
||||
|
||||
Reference in New Issue
Block a user