Unverified Commit 34c65952 authored by yann300's avatar yann300 Committed by GitHub

Update vertical-icons-component.js

parent b6b6fbc4
......@@ -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) => { })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment