diff --git a/src/app/tabs/runTab/settings.js b/src/app/tabs/runTab/settings.js
index ba6b9e0304..00dfc88da2 100644
--- a/src/app/tabs/runTab/settings.js
+++ b/src/app/tabs/runTab/settings.js
@@ -87,7 +87,9 @@ class SettingsUI {
Account
-
+
+
+
@@ -200,24 +202,25 @@ class SettingsUI {
updatePlusButton() {
// enable/disable + button
let plusBtn = document.getElementById("remixRunPlus")
+ let plusTitle = document.getElementById("remixRunPlusWraper")
switch (this.selectExEnv.value) {
case "injected": {
plusBtn.classList.add(css.disableMouseEvents)
- plusBtn.title = "Unfortnately it's not possible to create an account for injected web3, please use the Metamask or other providers"
+ plusTitle.title = "Unfortnately it's not possible to create an account for injected web3, please use the Metamask or other providers"
}
break;
case "vm": {
plusBtn.classList.remove(css.disableMouseEvents)
- plusBtn.title = "Create a new account"
+ plusTitle.title = "Create a new account"
}
break;
case "web3": {
if (!this._components.registry.get('config').api.get("settings/personal-mode")) {
plusBtn.classList.add(css.disableMouseEvents)
- plusBtn.title = "Creating an account is possible only in Personal mode. Please go to Settings to enable it."
+ plusTitle.title = "Creating an account is possible only in Personal mode. Please go to Settings to enable it."
} else {
plusBtn.classList.remove(css.disableMouseEvents)
- plusBtn.title = "Create a new account"
+ plusTitle.title = "Create a new account"
}
}
default:
diff --git a/src/app/tabs/settings-tab.js b/src/app/tabs/settings-tab.js
index 5ed5d0f943..a9d0b2f7f8 100644
--- a/src/app/tabs/settings-tab.js
+++ b/src/app/tabs/settings-tab.js
@@ -29,7 +29,10 @@ module.exports = class SettingsTab extends BaseApi {
}
this._view = { /* eslint-disable */
el: null,
- optionVM: null, personal: null, warnPersonalMode: null, generateContractMetadata: null,
+ optionVM: null,
+ personal: null,
+ warnPersonalMode: null,
+ generateContractMetadata: null,
config: {
general: null, themes: null
}
@@ -72,12 +75,6 @@ module.exports = class SettingsTab extends BaseApi {
if (this.config.get('settings/always-use-vm')) this._view.optionVM.setAttribute('checked', '')
this._view.personal = yo``
if (this.config.get('settings/personal-mode')) this._view.personal.setAttribute('checked', '')
- 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.`.split('\n').map(s => s.trim()).join(' ')
- this._view.warnPersonalMode = yo``
this._view.generateContractMetadata = yo``
if (this.config.get('settings/generate-contract-metadata')) this._view.generateContractMetadata.setAttribute('checked', '')
@@ -94,6 +91,13 @@ module.exports = class SettingsTab extends BaseApi {
`
+
+ 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, ...).
+ Remix never persist any passphrase.`.split('\n').map(s => s.trim()).join(' ')
+ this._view.warnPersonalMode = yo``
+
this._view.config.general = yo`