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

changed focus methods
pull/683/head^2
yann300 4 years ago committed by GitHub
commit c702880225
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      apps/remix-ide/src/app/components/main-panel.js
  2. 2
      apps/remix-ide/src/app/components/side-panel.js

@ -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 {
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 {
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 */

Loading…
Cancel
Save