Merge pull request #1800 from ethereum/yann300-patch-18

Update vertical-icons-component.js
pull/1/head
yann300 6 years ago committed by GitHub
commit aeb1e34d73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/app/components/vertical-icons-component.js

@ -95,11 +95,11 @@ class VerticalIconComponent {
let currentTitle = currentActive.getAttribute('title') let currentTitle = currentActive.getAttribute('title')
currentActive.classList.toggle(`${css.active}`) currentActive.classList.toggle(`${css.active}`)
if (currentTitle !== name) { if (currentTitle !== name) {
let activate = this.view.querySelector(`[title="${name}"]`) let activate = this.view.querySelector(`[plugin="${name}"]`)
if (activate) activate.classList.toggle(`${css.active}`) if (activate) activate.classList.toggle(`${css.active}`)
} }
} else { } else {
let activate = this.view.querySelector(`[title="${name}"]`) let activate = this.view.querySelector(`[plugin="${name}"]`)
if (activate) activate.classList.toggle(`${css.active}`) if (activate) activate.classList.toggle(`${css.active}`)
} }
this.events.emit('showContent', name) this.events.emit('showContent', name)

Loading…
Cancel
Save