|
|
|
@ -1,4 +1,5 @@ |
|
|
|
|
import React from 'react' //eslint-disable-line
|
|
|
|
|
import { OverlayTrigger, Tooltip } from 'react-bootstrap' |
|
|
|
|
|
|
|
|
|
interface StaticAnalyserButtonProps { |
|
|
|
|
onClick: (event) => void |
|
|
|
@ -16,8 +17,19 @@ const StaticAnalyserButton = ({ |
|
|
|
|
let classList = "btn btn-sm w-25 btn-primary" |
|
|
|
|
classList += disabled ? " disabled" : "" |
|
|
|
|
return ( |
|
|
|
|
<button className={classList} disabled={disabled} title={title} onClick={onClick}> |
|
|
|
|
<button className={classList} disabled={disabled} onClick={onClick}> |
|
|
|
|
<OverlayTrigger |
|
|
|
|
placement="bottom-start" |
|
|
|
|
overlay={ |
|
|
|
|
<Tooltip id="ssaRunButtonTooltip" className="text-nowrap"> |
|
|
|
|
<span>{title}</span> |
|
|
|
|
</Tooltip> |
|
|
|
|
} |
|
|
|
|
> |
|
|
|
|
<span> |
|
|
|
|
{buttonText} |
|
|
|
|
</span> |
|
|
|
|
</OverlayTrigger> |
|
|
|
|
</button> |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|