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

pull/3094/head
Grandschtroumpf 6 years ago
parent c4cd72945e
commit 6cae0363c1
  1. 4
      src/app/components/plugin-manager-component.js
  2. 4
      src/app/components/swap-panel-component.js
  3. 4
      src/app/components/vertical-icons-component.js

@ -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) {

Loading…
Cancel
Save