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

Loading…
Cancel
Save