From 6cae0363c1a979d0bdaf983c894ce83b3ba351cc Mon Sep 17 00:00:00 2001 From: Grandschtroumpf Date: Mon, 18 Feb 2019 11:24:16 +0100 Subject: [PATCH] change "name" by "entity" for `add` and `remove` events --- src/app/components/plugin-manager-component.js | 4 ++-- src/app/components/swap-panel-component.js | 4 ++-- src/app/components/vertical-icons-component.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/components/plugin-manager-component.js b/src/app/components/plugin-manager-component.js index 98654f8438..056acd7fc8 100644 --- a/src/app/components/plugin-manager-component.js +++ b/src/app/components/plugin-manager-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 () { diff --git a/src/app/components/swap-panel-component.js b/src/app/components/swap-panel-component.js index 1bebe87633..f38e707f0d 100644 --- a/src/app/components/swap-panel-component.js +++ b/src/app/components/swap-panel-component.js @@ -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) { diff --git a/src/app/components/vertical-icons-component.js b/src/app/components/vertical-icons-component.js index 931c136de6..b71e272a00 100644 --- a/src/app/components/vertical-icons-component.js +++ b/src/app/components/vertical-icons-component.js @@ -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) {