pull/1/head
yann300 7 years ago
parent 8252540aae
commit 1dfe40026f
  1. 4
      src/app/execution/txLogger.js
  2. 2
      src/app/panels/editor-panel.js

@ -15,10 +15,10 @@ class TxLogger {
constructor (opts = {}) {
this.event = new EventManager()
this.opts = opts
opts.api.editorpanel.registerType('knownTransaction', (data) => {
opts.api.editorpanel.registerLogType('knownTransaction', (data) => {
return renderKnownTransaction(this, data)
})
opts.api.editorpanel.registerType('unknownTransaction', (data) => {
opts.api.editorpanel.registerLogType('unknownTransaction', (data) => {
return renderUnknownTransaction(this, data)
})
opts.events.txListener.register('newTransaction', (tx) => {

@ -208,7 +208,7 @@ class EditorPanel {
self._adjustLayout('top', self.data._layout.top.offset)
return self._view.el
}
registerType (typename, template) {
registerLogType (typename, template) {
var self = this
self._components.terminal.registerType(typename, template)
}

Loading…
Cancel
Save