this["$bvModal"]["msgBoxOk"]("Could not convert your file. Are you sure it is a properly formatted "+this["currentExt"]+" file?",{
this["$bvModal"]["msgBoxOk"]("Could not convert your file. Are you sure it is a properly formatted "+this["currentExt"]+" file? If so, it may be too large to convert in the browser.",{
"title":"Error Converting File!",
});
this.$store.commit("setVar",{
...
...
@@ -119,7 +148,52 @@ let methodsFunctions = {
e.preventDefault();
},
"cancelPressed"(){
/**
* PDB files are very common, yet openbabel.js cannot convert them if they
* are too large. Here we make efforts to "optimize" the PDB file to
* maximize the changes that openbabel.js will succeed.
* @param {number} level The optimization level.
* @returns string A message to show the user re. any modifications made
* to the PDB file.
*/
pdbOptimization(level:number):string{
letpdbTxt=this.$store.state["convertFile"];
letmsg="";
switch(level){
case1:
// Always run this optimization. Just removes lines that don't