Skip to content
Snippets Groups Projects
Commit da763fdd authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

display num residus when too large

parent f3bd6728
No related branches found
No related tags found
1 merge request!134Resolve "Table with all PDB files, to make them available to download"
Pipeline #118412 passed
...@@ -110,7 +110,7 @@ watch(selectedPaePath, async (newPaePath) => { ...@@ -110,7 +110,7 @@ watch(selectedPaePath, async (newPaePath) => {
console.log(data[0][0]) console.log(data[0][0])
console.log(data?.[0]?.[0] !== undefined) console.log(data?.[0]?.[0] !== undefined)
if (data.length > 500) { if (data.length > 500) {
paeError.value = "The PAE is too large to be displayed" paeError.value = `The PAE is too large to be displayed (${data.length} residus)`
paeData.value = [] paeData.value = []
} }
else if (data?.[0]?.[0] === undefined) { else if (data?.[0]?.[0] === undefined) {
...@@ -163,8 +163,6 @@ watch(selectedPdb, (newSelectedPdb, prevSelectPdb) => { ...@@ -163,8 +163,6 @@ watch(selectedPdb, (newSelectedPdb, prevSelectPdb) => {
if (newSelectedPdb !== null) { if (newSelectedPdb !== null) {
dialog.value = true dialog.value = true
const format = toValue(newSelectedPdb)?.split(".").slice(-1)[0]?.toLowerCase() ?? "pdb" const format = toValue(newSelectedPdb)?.split(".").slice(-1)[0]?.toLowerCase() ?? "pdb"
console.log(toValue(newSelectedPdb)?.split(".").slice(-1))
console.log(format)
moleculeFormat.value = format moleculeFormat.value = format
if (pdbeMolstarComponent.value?.viewerInstance) { if (pdbeMolstarComponent.value?.viewerInstance) {
const viewerInstance = pdbeMolstarComponent.value.viewerInstance const viewerInstance = pdbeMolstarComponent.value.viewerInstance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment