Skip to content

Commit

Permalink
updated description in bedset
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Oct 23, 2024
1 parent 0d75d2e commit 63aeec6
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions ui/src/components/bedset-splash-components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,28 @@ export const BedsetSplashHeader = (props: Props) => {
<div className="d-flex flex-row align-items-start justify-content-between mb-2 ">
<div className="d-flex flex-column align-items-start">
<h4 className="fw-bold">
<i className="bi bi-file-earmark-text me-2"/>
<i className="bi bi-file-earmark-text me-2" />
{metadata?.id || 'No name available'}
<button
className="btn btn-link text-primary mb-2"
onClick={() => {
copyToClipboard(metadata.id || '');
setCopiedId(true);
setTimeout(() => {
setCopiedId(false);
}, 1000);
}}
className="btn btn-link text-primary mb-2"
onClick={() => {
copyToClipboard(metadata.id || '');
setCopiedId(true);
setTimeout(() => {
setCopiedId(false);
}, 1000);
}}
>
{copiedId ? <i className="bi bi-check me-1" /> : <i className="bi bi-clipboard me-1" />}
</button>
</h4>
<p className="mb-0">{metadata?.description || 'No description available'}</p>
</div>
<div className="d-flex flex-row align-items-center gap-1">

{/* TODO: change hg38 on correct genome */}
{/*<a href={`https://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&hubUrl=https://api-dev.bedbase.org/v1/bedset/${metadata.id}/track_hub`}>*/}
<a href={`https://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&hubUrl=${API_BASE}/bedset/${metadata.id}/track_hub`}>
<a
href={`https://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&hubUrl=${API_BASE}/bedset/${metadata.id}/track_hub`}>
<button className="btn btn-outline-primary btn-sm">
<i className="bi bi-distribute-vertical me-1" />
Genome Browser
Expand Down Expand Up @@ -103,6 +103,9 @@ export const BedsetSplashHeader = (props: Props) => {
</button>
</div>
</div>
<div>
<p className="mb-2">{metadata?.description || 'No description available'}</p>
</div>
<div className="d-flex flex-row align-items-end justify-content-start gap-1">
<div className="badge bg-primary text-wrap">
<i className="bi bi-hash me-1" />
Expand Down

0 comments on commit 63aeec6

Please sign in to comment.