1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-24 23:26:50 +02:00

Plugins: Add support for hiding and showing panels

This commit is contained in:
Laurent Cozic
2021-01-02 13:32:15 +00:00
parent 0be8cdf760
commit 5b295d5f6f
25 changed files with 298 additions and 17 deletions

View File

@ -6,14 +6,14 @@ export default class ViewController {
private pluginId_: string;
private store_: any;
constructor(handle: ViewHandle, pluginId: string, store: any) {
public constructor(handle: ViewHandle, pluginId: string, store: any) {
this.handle_ = handle;
this.pluginId_ = pluginId;
this.store_ = store;
}
protected get storeView(): any {
return this.store_.pluginService.plugins[this.pluginId_].views[this.handle];
return this.store_.getState().pluginService.plugins[this.pluginId_].views[this.handle];
}
protected get store(): any {