switch "get" to "getEntity"

pull/3094/head
Grandschtroumpf 6 years ago
parent 07302d036d
commit a9760220b3
  1. 2
      src/app/components/swap-panel-component.js
  2. 4
      src/app/components/vertical-icons-component.js
  3. 2
      src/remixAppManager.js

@ -22,7 +22,7 @@ class SwapPanelComponent {
})
this.store.event.on('activate', (name) => {
const { profile, api } = this.store.get(name)
const { profile, api } = this.store.getEntity(name)
if (((profile.prefferedLocation === this.name) || (!profile.prefferedLocation && opt.default)) &&
profile.icon && api.render && typeof api.render === 'function') {
this.add(name, api.render())

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

@ -32,7 +32,7 @@ export class RemixAppManager extends AppManagerApi {
}
getEntity (entityName) {
return this.store.get(entityName)
return this.store.getEntity(entityName)
}
addEntity (entity) {

Loading…
Cancel
Save