Skip to content
Snippets Groups Projects
Commit c008a18e authored by David Mendez's avatar David Mendez
Browse files

sets mockup: use eubopen id for compounds when no pref name

parent 18dc0516
Branches staging
No related tags found
1 merge request!100Add alternative forms and Sets page
......@@ -37,7 +37,7 @@
class="d-flex flex-column justify-center align-center"
>
<MoleculeImage
:molecule-chembl-id="item['Molecule ChEMBL ID']"
:molecule-chembl-id="item['EUbOPEN Compound ID']"
:aspect-ratio="String(16 / 9)"
max-width="250px"
contain
......@@ -139,13 +139,13 @@ export default {
},
showItemLinkToCompound(item) {
return (
item['Molecule ChEMBL ID'] != null &&
item['Molecule ChEMBL ID'] !== this.nullTextValue
item['EUbOPEN Compound ID'] != null &&
item['EUbOPEN Compound ID'] !== this.nullTextValue
)
},
getItemCompoundIDText(item) {
const compoundPrefName = item.COMPOUND_NAME
const compoundID = item['Molecule ChEMBL ID']
const compoundID = item['EUbOPEN Compound ID']
return compoundPrefName == null || compoundPrefName === this.nullTextValue
? compoundID
: compoundPrefName
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment