From 2cf62c3229d5a15252e0328b85ad4ce08e6fb8e1 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 3 Apr 2020 13:17:20 +0000 Subject: [PATCH] Show checkbox for compiled contracts --- src/app/tabs/runTab/contractDropdown.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/app/tabs/runTab/contractDropdown.js b/src/app/tabs/runTab/contractDropdown.js index 091663cd58..07105beff5 100644 --- a/src/app/tabs/runTab/contractDropdown.js +++ b/src/app/tabs/runTab/contractDropdown.js @@ -88,18 +88,24 @@ class ContractDropdownUI { this.atAddress = yo`` this.atAddressButtonInput = yo`` this.selectContractNames = yo`` + this.ipfsCheckedState = savedConfig === 'true' ? true : false // eslint-disable-line + const ipfsCheckbox = this.ipfsCheckedState === true + ? yo`` + : yo`` + + this.deployCheckBox = yo` +
+ ${ipfsCheckbox} + + +
+ ` this.createPanel = yo`
` this.orLabel = yo`
or
` if (this.exEnvironment === 'vm') this.networkName = 'VM' const savedConfig = window.localStorage.getItem(`ipfs/${this.exEnvironment}/${this.networkName}`) - - this.ipfsCheckedState = savedConfig === 'true' ? true : false // eslint-disable-line - const ipfsCheckbox = this.ipfsCheckedState === true - ? yo`` - : yo`` - let el = yo`
@@ -108,11 +114,6 @@ class ContractDropdownUI {
${this.createPanel} -
- ${ipfsCheckbox} - - -
${this.orLabel}
${this.atAddress} @@ -174,6 +175,7 @@ class ContractDropdownUI { selectedContract.bytecodeObject ) this.createPanel.appendChild(createConstructorInstance.render()) + this.createPanel.appendChild(this.deployCheckBox) } getSelectedContract () {