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

@ -199,30 +199,31 @@ class SettingsUI {
this.updatePlusButton() this.updatePlusButton()
} }
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