Unverified Commit c7028802 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #725 from ethereum/bunsenstraat-patch-1

changed focus methods
parents 262fdb8c 8f367ad1
...@@ -24,6 +24,11 @@ export class MainPanel extends AbstractPanel { ...@@ -24,6 +24,11 @@ export class MainPanel extends AbstractPanel {
super(profile) super(profile)
} }
focus (name) {
this.emit('focusChanged', name)
super.focus(name)
}
render () { render () {
return yo` return yo`
<div class=${css.pluginsContainer} data-id="mainPanelPluginsContainer"> <div class=${css.pluginsContainer} data-id="mainPanelPluginsContainer">
......
...@@ -92,6 +92,7 @@ export class SidePanel extends AbstractPanel { ...@@ -92,6 +92,7 @@ export class SidePanel extends AbstractPanel {
focus (name) { focus (name) {
this.emit('focusChanged', name) this.emit('focusChanged', name)
super.focus(name)
} }
removeView (profile) { removeView (profile) {
...@@ -112,7 +113,6 @@ export class SidePanel extends AbstractPanel { ...@@ -112,7 +113,6 @@ export class SidePanel extends AbstractPanel {
async showContent (name) { async showContent (name) {
super.showContent(name) super.showContent(name)
this.renderHeader() this.renderHeader()
this.focus(name)
} }
/** The header of the side panel */ /** The header of the side panel */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment