From 842fc0ac644b97798ac725d559a4451cbdc3ab5e Mon Sep 17 00:00:00 2001 From: lianahus Date: Mon, 4 Oct 2021 13:36:40 +0200 Subject: [PATCH] fixed run button --- apps/remix-ide/src/app/tabs/test-tab.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js index 0ad7aac4ee..5b039dd288 100644 --- a/apps/remix-ide/src/app/tabs/test-tab.js +++ b/apps/remix-ide/src/app/tabs/test-tab.js @@ -48,6 +48,7 @@ module.exports = class TestTab extends ViewPlugin { appManager.event.on('activate', (name) => { if (name === 'solidity') this.updateRunAction() + console.log('solidity is activated') }) appManager.event.on('deactivate', (name) => { if (name === 'solidity') this.updateRunAction() @@ -79,6 +80,7 @@ module.exports = class TestTab extends ViewPlugin { if (!isSolidityActive) { await this.call('manager', 'activatePlugin', 'solidity') } + this.updateRunAction() } onDeactivation () { @@ -625,7 +627,7 @@ module.exports = class TestTab extends ViewPlugin { return this.generateFileActionElement } - async updateRunAction (currentFile) { + updateRunAction (currentFile) { const el = yo`