Skip to content

Commit

Permalink
link to parent if not available due to license
Browse files Browse the repository at this point in the history
  • Loading branch information
eimrek committed Dec 3, 2024
1 parent 5eef429 commit abaa9c0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/DetailPage/ParentsSection/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,18 @@ const ParentsSection = (props) => {
parentsList[selectedParentIndex].source_db == "ICSD" ||
parentsList[selectedParentIndex].source_db == "MPDS"
) {
naMsg =
"Parent structures originating from ICSD" +
" and MPDS cannot be displayed here for licensing reasons.";
naMsg = (
<span>
Parent structures originating from ICSD and MPDS cannot be displayed
here for licensing reasons. Link to see the structure in the original
database:{" "}
{formatSourceLink(
parentsList[selectedParentIndex].source_db,
parentsList[selectedParentIndex].source_db_id,
)}
.
</span>
);
}

let structurePanel = <div style={{ margin: "71px 40px 0px" }}>{naMsg}</div>;
Expand Down

0 comments on commit abaa9c0

Please sign in to comment.