Commit 8af7827a authored by Grandschtroumpf's avatar Grandschtroumpf

change "name" by "entity" for `add` and `remove` events

parent 5ce1c998
......@@ -36,8 +36,8 @@ class PluginManagerComponent {
this.store = store
this.store.event.on('activate', (name) => { this.reRender() })
this.store.event.on('deactivate', (name) => { this.reRender() })
this.store.event.on('add', (name) => { this.reRender() })
this.store.event.on('remove', (name) => { this.reRender() })
this.store.event.on('add', (entity) => { this.reRender() })
this.store.event.on('remove', (entity) => { this.reRender() })
}
render () {
......
......@@ -32,8 +32,8 @@ class SwapPanelComponent {
this.store.event.on('deactivate', (name) => {
if (this.contents[name]) this.remove(name)
})
this.store.event.on('add', (name) => { })
this.store.event.on('remove', (name) => { })
this.store.event.on('add', (entity) => { })
this.store.event.on('remove', (entity) => { })
}
showContent (moduleName) {
......
......@@ -20,8 +20,8 @@ class VerticalIconComponent {
const item = this.store.get(name)
if (item && this.icons[name]) this.removeIcon(item.profile)
})
this.store.event.on('add', (name) => { })
this.store.event.on('remove', (name) => { })
this.store.event.on('add', (entity) => { })
this.store.event.on('remove', (entity) => { })
}
addIcon (mod) {
......
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