pull/1/head
LianaHus 6 years ago
parent 61003c0032
commit a8b5da6c9a
  1. 23
      src/app/tabs/runTab/settings.js

@ -201,28 +201,29 @@ class SettingsUI {
updatePlusButton () { updatePlusButton () {
// enable/disable + button // enable/disable + button
let plusBtn = document.getElementById("remixRunPlus") let plusBtn = document.getElementById('remixRunPlus')
let plusTitle = document.getElementById("remixRunPlusWraper") let plusTitle = document.getElementById('remixRunPlusWraper')
switch (this.selectExEnv.value) { switch (this.selectExEnv.value) {
case "injected": { case 'injected': {
plusBtn.classList.add(css.disableMouseEvents) plusBtn.classList.add(css.disableMouseEvents)
plusTitle.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; break
case "vm": { case 'vm': {
plusBtn.classList.remove(css.disableMouseEvents) plusBtn.classList.remove(css.disableMouseEvents)
plusTitle.title = "Create a new account" plusTitle.title = 'Create a new account'
} }
break; break
case "web3": { case 'web3': {
if (!this._components.registry.get('config').api.get("settings/personal-mode")) { if (!this._components.registry.get('config').api.get('settings/personal-mode')) {
plusBtn.classList.add(css.disableMouseEvents) plusBtn.classList.add(css.disableMouseEvents)
plusTitle.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 { } else {
plusBtn.classList.remove(css.disableMouseEvents) plusBtn.classList.remove(css.disableMouseEvents)
plusTitle.title = "Create a new account" plusTitle.title = 'Create a new account'
} }
} }
break
default: default:
} }
} }

Loading…
Cancel
Save