Update vertical-icons-component.js

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

@ -16,11 +16,11 @@ class VerticalIconComponent {
this.icons = {}
this.store.event.on('activate', (name) => {
let item = this.store.get(name)
const item = this.store.get(name)
if (item && item.profile.icon && name !== 'code editor') this.addIcon(item.profile)
})
this.store.event.on('deactivate', (name) => {
let item = this.store.get(name)
const item = this.store.get(name)
if (item && this.icons[name]) this.removeIcon(item.profile)
})
this.store.event.on('add', (name) => { })

Loading…
Cancel
Save