|
|
@ -257,7 +257,9 @@ export const ContractSelection = (props: ContractSelectionProps) => { |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<article className="mt-2 pb-0"> |
|
|
|
<article className="mt-2 pb-0"> |
|
|
|
{showFlattener && <CustomTooltip |
|
|
|
{api.getCompilationResult().data.sources[api.currentFile] |
|
|
|
|
|
|
|
.ast && api.getCompilationResult().data.sources[api.currentFile] |
|
|
|
|
|
|
|
.ast.nodes.some(x => x.nodeType === 'ImportDirective') ? <CustomTooltip |
|
|
|
placement="right-start" |
|
|
|
placement="right-start" |
|
|
|
tooltipId="flattenContractTooltip" |
|
|
|
tooltipId="flattenContractTooltip" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
@ -266,7 +268,7 @@ export const ContractSelection = (props: ContractSelectionProps) => { |
|
|
|
<button id="contractFlattener" onClick={flattenContract} className="btn btn-secondary btn-block mt-2"> |
|
|
|
<button id="contractFlattener" onClick={flattenContract} className="btn btn-secondary btn-block mt-2"> |
|
|
|
<FormattedMessage id='solidity.flattenLabel' /> {api.currentFile} |
|
|
|
<FormattedMessage id='solidity.flattenLabel' /> {api.currentFile} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</CustomTooltip> |
|
|
|
</CustomTooltip> : null |
|
|
|
} |
|
|
|
} |
|
|
|
<CustomTooltip |
|
|
|
<CustomTooltip |
|
|
|
placement="right-start" |
|
|
|
placement="right-start" |
|
|
|