Add error message on empty BioEddie save [SCI-5993] (#3526)

This commit is contained in:
aignatov-bio 2021-09-06 10:13:30 +02:00 committed by GitHub
parent 0ce6e29614
commit ccc2964aff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -92,6 +92,11 @@ var bioEddieEditor = (function() {
} else {
saveMolecule(svg, structure, scheduleForRegistration);
}
})
.catch(() => {
if (structure === '$$$$V2.0') {
HelperModule.flashAlertMsg(I18n.t('bio_eddie.empty_molecule_error'), 'danger');
}
});
}
@ -129,7 +134,6 @@ var bioEddieEditor = (function() {
bioEddieModal.data('update-url', updateUrl);
bioEddieModal.find('.file-name input').val(name);
bioEddieModal.modal('show');
}
};
}());

View file

@ -2688,6 +2688,7 @@ en:
molecule_name_placeholder: "Click here to enter Molecule name"
no_molecules_found: "No Molecules Found"
save_and_register: "Save & Register to Biomolecule Toolkit"
empty_molecule_error: "An error occurred. The molecule can't be empty."
marvinjs:
new_sketch: "New Chemical Drawing"