pull/5370/head
LianaHus 5 years ago
parent df0a9694e4
commit a206b647cc
  1. 3
      src/app/components/hidden-panel.js
  2. 4
      src/app/components/main-panel.js
  3. 2
      src/app/components/panel.js
  4. 6
      src/app/components/side-panel.js
  5. 2
      src/app/ui/txLogger.js

@ -13,7 +13,8 @@ const profile = {
name: 'hiddenPanel', name: 'hiddenPanel',
displayName: 'Hidden Panel', displayName: 'Hidden Panel',
description: '', description: '',
version: packageJson.version version: packageJson.version,
methods: {}
} }
export class HiddenPanel extends AbstractPanel { export class HiddenPanel extends AbstractPanel {

@ -20,8 +20,8 @@ const profile = {
} }
export class MainPanel extends AbstractPanel { export class MainPanel extends AbstractPanel {
constructor (options) { constructor () {
super(profile, options) super(profile)
} }
render () { render () {

@ -28,7 +28,7 @@ const css = csjs`
/** Abstract class used for hosting the view of a plugin */ /** Abstract class used for hosting the view of a plugin */
export class AbstractPanel extends HostPlugin { export class AbstractPanel extends HostPlugin {
constructor (profile, opts) { constructor (profile) {
super(profile) super(profile)
this.events = new EventEmitter() this.events = new EventEmitter()
this.contents = {} this.contents = {}

@ -48,10 +48,6 @@ const css = csjs`
} }
` `
const options = {
default: true
}
const sidePanel = { const sidePanel = {
name: 'sidePanel', name: 'sidePanel',
displayName: 'Side Panel', displayName: 'Side Panel',
@ -64,7 +60,7 @@ const sidePanel = {
export class SidePanel extends AbstractPanel { export class SidePanel extends AbstractPanel {
constructor (appManager, verticalIcons) { constructor (appManager, verticalIcons) {
super(sidePanel, options) super(sidePanel)
this.appManager = appManager this.appManager = appManager
this.header = this.renderHeader() this.header = this.renderHeader()
this.verticalIcons = verticalIcons this.verticalIcons = verticalIcons

@ -125,7 +125,7 @@ class TxLogger {
} }
return false return false
} }
this.eventsDecoder = globalRegistry.get('teventsDecoder').api this.eventsDecoder = globalRegistry.get('eventsDecoder').api
this.txListener = globalRegistry.get('txListener').api this.txListener = globalRegistry.get('txListener').api
this.terminal = terminal this.terminal = terminal
// dependencies // dependencies

Loading…
Cancel
Save