From eef5069ede01a10a4301b0c4276a80a4dd689ae9 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Wed, 29 Jul 2020 11:04:09 +0200 Subject: [PATCH] corrected the style of "Pubish to IPFS" checkbox --- .../src/app/tabs/runTab/contractDropdown.js | 17 ++++++++++++----- .../src/app/tabs/styles/run-tab-styles.js | 3 +++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js index 925719ea44..0f44391260 100644 --- a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js +++ b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js @@ -92,16 +92,23 @@ class ContractDropdownUI { const savedConfig = window.localStorage.getItem(`ipfs/${this.exEnvironment}/${this.networkName}`) this.ipfsCheckedState = savedConfig === 'true' ? true : false // eslint-disable-line - this.ipfsCheckbox = this.ipfsCheckedState === true - ? yo`` - : yo`` + this.ipfsCheckbox = yo` + this.toggleCheckedState.bind()} + > + ` + if (this.ipfsCheckedState) this.ipfsCheckbox.checked = true this.deployCheckBox = yo` -
+
${this.ipfsCheckbox}