Restyle settings tab - enable personal mode

pull/1/head
ninabreznik 7 years ago
parent 134245e03f
commit d310d1d1bf
  1. 15
      src/app/tabs/settings-tab.js

@ -18,6 +18,13 @@ function SettingsTab (container, appAPI, appEvents) {
var optionVM = yo`<input id="alwaysUseVM" type="checkbox">` var optionVM = yo`<input id="alwaysUseVM" type="checkbox">`
var personal = yo`<input id="personal" type="checkbox">` var personal = yo`<input id="personal" type="checkbox">`
var warnText = `Transaction sent over Web3 will use the web3.personal API - be sure the endpoint is opened before enabling it.
This mode allows to provide the passphrase in the Remix interface without having to unlock the account.
Although this is very convenient, you should completely trust the backend you are connected to (Geth, Parity, ...).
It is not recommended (and also most likely not relevant) to use this mode with an injected provider (Mist, Metamask, ...) or with JavaScript VM.
Remix never persist any passphrase.`
var warnPersonalMode = yo`<i title=${warnText} class="${css.icon} fa fa-exclamation-triangle" aria-hidden="true"></i>`
var el = yo` var el = yo`
<div class="${css.settingsTabView} "id="settingsView"> <div class="${css.settingsTabView} "id="settingsView">
<div class="${css.info}"> <div class="${css.info}">
@ -43,13 +50,7 @@ function SettingsTab (container, appAPI, appEvents) {
</div> </div>
<div class="${css.crow}"> <div class="${css.crow}">
<div>${personal}></div> <div>${personal}></div>
<span class="${css.checkboxText}">Enable Personal Mode (transaction sent over Web3 will use the web3.personal API - be sure the endpoint is opened before enabling it -).</span> <span class="${css.checkboxText}">Enable Personal Mode ${warnPersonalMode}></span>
<div>
This mode allows to provide the passphrase in the Remix interface without having to unlock the account. <br>
Although this is very convenient, you should <b>completely trust</b> the backend you are connected to (Geth, Parity, ...). <br>
It is not recommended (and also most likely not relevant) to use this mode with an injected provider (Mist, Metamask, ...) or with JavaScript VM <br>
Remix never persist any passphrase.
</div>
</div> </div>
</div> </div>
<div class="${css.info}"> <div class="${css.info}">

Loading…
Cancel
Save