Skip to content

Commit

Permalink
Merge pull request #279 from ucdavis/JCS/CopyHover20240112
Browse files Browse the repository at this point in the history
Jcs/copy hover20240112
  • Loading branch information
jSylvestre authored Jan 19, 2024
2 parents 0837231 + 1813e85 commit 00480d7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Finjector.Web/ClientApp/src/pages/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,16 @@ const Details = () => {
{chartStringDetails.folder?.name}
</h4>
)}
<h1>{chartStringDetails?.name ?? "Chart String Details"}</h1>
{chartStringDetails?.name === undefined ? (
<h1>Chart String Details</h1>
) : (
<CopyToClipboardHover
value={chartStringDetails.name}
id="ChartName"
>
<h1>{chartStringDetails.name}</h1>
</CopyToClipboardHover>
)}
</div>
{!invalid && (
<div className="col-12 col-md-5 text-end">
Expand Down

0 comments on commit 00480d7

Please sign in to comment.