Skip to content

Commit

Permalink
Add custom message for cell metadata upload not ready
Browse files Browse the repository at this point in the history
Signed-off-by: cosa65 <[email protected]>
  • Loading branch information
cosa65 committed Dec 15, 2023
1 parent 768ded5 commit 32953c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/data-management/LaunchAnalysisButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,12 @@ const LaunchAnalysisButton = () => {
}

if (!canLaunchAnalysis()) {
const message = !cellLevelMetadataIsReady
? 'Ensure that the cell level metadata file is uploaded correctly'
: 'Ensure that all samples are uploaded successfully and all relevant metadata is inserted.';
return (
<Tooltip
title='Ensure that all samples are uploaded successfully and all relevant metadata is inserted.'
title={message}
>
{/* disabled button inside tooltip causes tooltip to not function */}
{/* https://github.com/react-component/tooltip/issues/18#issuecomment-140078802 */}
Expand Down

0 comments on commit 32953c1

Please sign in to comment.