mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-21 03:28:11 +08:00
remove popover (#1456)
This commit is contained in:
@@ -95,61 +95,22 @@ class DiffexpButtons extends React.Component {
|
||||
eitherCellSetOneOrTwo={2}
|
||||
/>
|
||||
{!differential.diffExp ? (
|
||||
<Popover
|
||||
isOpen={/* warnMaxSizeExceeded && !userDismissedPopover */ false}
|
||||
position={Position.BOTTOM}
|
||||
target={
|
||||
<Tooltip
|
||||
content={warnMaxSizeExceeded ? tipMessageWarn : tipMessage}
|
||||
position="bottom"
|
||||
hoverOpenDelay={globals.tooltipHoverOpenDelayQuick}
|
||||
intent={warnMaxSizeExceeded ? "danger" : "none"}
|
||||
>
|
||||
<AnchorButton
|
||||
disabled={!haveBothCellSets || warnMaxSizeExceeded}
|
||||
intent={warnMaxSizeExceeded ? "danger" : "primary"}
|
||||
data-testid="diffexp-button"
|
||||
loading={differential.loading}
|
||||
icon="left-join"
|
||||
fill
|
||||
onClick={this.computeDiffExp}
|
||||
/>
|
||||
</Tooltip>
|
||||
}
|
||||
content={
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "flex-start",
|
||||
alignItems: "flex-end",
|
||||
flexDirection: "column",
|
||||
padding: 10,
|
||||
maxWidth: 310,
|
||||
}}
|
||||
>
|
||||
<p>
|
||||
{`The total number of cells for differential expression computation
|
||||
may not exceed ${diffexpCellcountMax}`}
|
||||
</p>
|
||||
<Button
|
||||
type="button"
|
||||
data-testid="diffexp-maxsize-exceeded-warning-dismiss"
|
||||
intent="warning"
|
||||
onClick={this.clearDifferentialExpression}
|
||||
>
|
||||
Dismiss and clear cell sets
|
||||
</Button>
|
||||
<Button
|
||||
type="button"
|
||||
data-testid="diffexp-popover-dismiss"
|
||||
intent="none"
|
||||
onClick={this.handlePopoverDismiss}
|
||||
>
|
||||
Dismiss
|
||||
</Button>
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
<Tooltip
|
||||
content={warnMaxSizeExceeded ? tipMessageWarn : tipMessage}
|
||||
position="bottom"
|
||||
hoverOpenDelay={globals.tooltipHoverOpenDelayQuick}
|
||||
intent={warnMaxSizeExceeded ? "danger" : "none"}
|
||||
>
|
||||
<AnchorButton
|
||||
disabled={!haveBothCellSets || warnMaxSizeExceeded}
|
||||
intent={warnMaxSizeExceeded ? "danger" : "primary"}
|
||||
data-testid="diffexp-button"
|
||||
loading={differential.loading}
|
||||
icon="left-join"
|
||||
fill
|
||||
onClick={this.computeDiffExp}
|
||||
/>
|
||||
</Tooltip>
|
||||
) : null}
|
||||
|
||||
{differential.diffExp ? (
|
||||
|
||||
Reference in New Issue
Block a user