|
|
|
@ -16,6 +16,8 @@ const profile = { |
|
|
|
|
events: ['toggleContent', 'showContent'] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const toMaximize = ['LearnEth'] |
|
|
|
|
|
|
|
|
|
export class VerticalIcons extends Plugin { |
|
|
|
|
events: EventEmitter |
|
|
|
|
htmlElement: HTMLDivElement |
|
|
|
@ -106,6 +108,11 @@ export class VerticalIcons extends Plugin { |
|
|
|
|
// TODO: Only keep `this.emit` (issue#2210)
|
|
|
|
|
this.emit('showContent', name) |
|
|
|
|
this.events.emit('showContent', name) |
|
|
|
|
if (toMaximize.includes(name)) { |
|
|
|
|
setTimeout(_ => { |
|
|
|
|
this.call('layout', 'maximiseSidePanel') |
|
|
|
|
}, 500) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|