Able to remove empty translations
This commit is contained in:
@@ -18,6 +18,11 @@ class EditTranslation(DataChgClickMessage):
|
||||
# common_accessors.label_list_getter()
|
||||
self.translation.tags = common_accessors.label_list_getter()
|
||||
|
||||
# check if empty, remove!
|
||||
if self.translation.is_empty():
|
||||
model.entry.remove_translation(self.translation)
|
||||
return
|
||||
|
||||
new_cluster_idx = int(document.getElementById("cluster-num").value) - 1
|
||||
self.handle_cluster_change(new_cluster_idx, model)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user