From 32ef0a42b360d01785a6f87e1411e6a03c2072cc Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 16 Sep 2022 14:03:08 +0200 Subject: [PATCH] async --- apps/remix-ide-e2e/src/tests/ballot.test.ts | 2 +- .../remix-ui/solidity-compiler/src/lib/compiler-container.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/ballot.test.ts b/apps/remix-ide-e2e/src/tests/ballot.test.ts index 87376c1022..9139f1a292 100644 --- a/apps/remix-ide-e2e/src/tests/ballot.test.ts +++ b/apps/remix-ide-e2e/src/tests/ballot.test.ts @@ -153,7 +153,7 @@ module.exports = { }) .waitForElementVisible('*[data-id="scConfigFilePathInput"]', 10000) - .sendKeys('*[data-id="scConfigFilePathInput"]', 'compiler_config.json') + .sendKeys('*[data-id="scConfigFilePathInput"]', 'cf.json') .sendKeys('*[data-id="scConfigFilePathInput"]', browser.Keys.ENTER) .isVisible({ diff --git a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx index 0af0ceecd5..7e4a84ed66 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx @@ -239,7 +239,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => { } const openFile = async () => { - api.open(configFilePath) + await api.open(configFilePath) } const createNewConfigFile = async () => { @@ -826,7 +826,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
{ (!showFilePathInput && state.useFileConfiguration) && {} : openFile} + onClick={configFilePath === '' ? () => {} : async()=>{ await openFile()}} className="py-2 remixui_compilerConfigPath" >{configFilePath === '' ? 'No file selected.' : configFilePath} } { (!showFilePathInput && !state.useFileConfiguration) && {configFilePath} }