Commit a093a464 authored by Your Name's avatar Your Name Committed by filip mertens

changed focus methods

trailing spaces
parent 1f6c4ab4
...@@ -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