mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-10 06:06:24 +08:00
Add error message on empty BioEddie save [SCI-5993] (#3526)
This commit is contained in:
parent
0ce6e29614
commit
ccc2964aff
2 changed files with 6 additions and 1 deletions
|
|
@ -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');
|
||||
|
||||
}
|
||||
};
|
||||
}());
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue