Add the ability to quickly delete a couple of stuff
This commit is contained in:
@@ -40,18 +40,18 @@ def edit_example(example):
|
||||
def edit_variants(entry):
|
||||
vget = lambda: entry.copy().variants
|
||||
content = generic_list_editor("Variants", vget)
|
||||
return modal_template(content, "Add or remove variants", message.EditVariants())
|
||||
return modal_template(content, "Add or remove variants", message.EditVariants(), message.DeleteVariants())
|
||||
|
||||
|
||||
def edit_related_entries(entry):
|
||||
reget = lambda: entry.copy().related_entries
|
||||
content = generic_list_editor("Related entries", reget)
|
||||
return modal_template(content, "Add or remove related entries", message.EditRelatedEntries())
|
||||
return modal_template(content, "Add or remove related entries", message.EditRelatedEntries(), message.DeleteRelatedEntries())
|
||||
|
||||
|
||||
def edit_entry_labels(entry):
|
||||
content = label_list_editor(entry.copy().labels, message.AddToLabelList(entry.copy().labels))
|
||||
return modal_template(content, "Translation", message.EditEntryLabels())
|
||||
return modal_template(content, "Translation", message.EditEntryLabels(), message.DeleteEntryLabels())
|
||||
|
||||
|
||||
def edit_sense_definition(sense):
|
||||
@@ -59,7 +59,7 @@ def edit_sense_definition(sense):
|
||||
|
||||
|
||||
def edit_comment(comment):
|
||||
return modal_template(question("Edit comment", comment), "Comment", message.EditComment())
|
||||
return modal_template(question("Edit comment", comment), "Comment", message.EditComment(), message.DeleteComment())
|
||||
|
||||
|
||||
def do_chosen_examples(example_list, entry):
|
||||
|
||||
Reference in New Issue
Block a user