|
|
|
@ -453,6 +453,13 @@ export const CompilerContainer = (props: CompilerContainerProps) => { |
|
|
|
|
const isDisabled = !compiledFileName || (compiledFileName && !isSolFileSelected(compiledFileName)) |
|
|
|
|
|
|
|
|
|
setDisableCompileButton(isDisabled) |
|
|
|
|
|
|
|
|
|
// just for e2e
|
|
|
|
|
// eslint-disable-next-line no-case-declarations
|
|
|
|
|
const loadedElement = document.createElement('span') |
|
|
|
|
loadedElement.setAttribute('data-id', 'compilerloaded') |
|
|
|
|
loadedElement.setAttribute('data-version', state.selectedVersion) |
|
|
|
|
document.body.appendChild(loadedElement) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const compilationFinished = () => { |
|
|
|
@ -849,7 +856,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => { |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div className="px-4"> |
|
|
|
|
<span id='compilerLoadedVersion' data-version={compilerLoadedVersion}></span> |
|
|
|
|
{compilerLoadedVersion ? <span data-id='compilerLoadedVersion' data-version={compilerLoadedVersion}></span> : ''} |
|
|
|
|
<button id="compileBtn" data-id="compilerContainerCompileBtn" className="btn btn-primary btn-block d-block w-100 text-break remixui_disabled mb-1 mt-3" onClick={compile} disabled={(configFilePath === '' && state.useFileConfiguration) || disableCompileButton}> |
|
|
|
|
<OverlayTrigger overlay={ |
|
|
|
|
<Tooltip id="overlay-tooltip-compile"> |
|
|
|
|