mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
22 lines
544 B
JavaScript
22 lines
544 B
JavaScript
import options from "../../services/options.js";
|
|
import FlexContainer from "./flex_container.js";
|
|
|
|
export default class SidePaneContainer extends FlexContainer {
|
|
constructor() {
|
|
super('column');
|
|
|
|
this.id('left-pane');
|
|
this.css('height', '100%');
|
|
}
|
|
|
|
isEnabled() {
|
|
return super.isEnabled() && options.is( 'leftPaneVisible');
|
|
}
|
|
|
|
entitiesReloadedEvent({loadResults}) {
|
|
if (loadResults.isOptionReloaded("leftPaneVisible")) {
|
|
this.toggleInt(this.isEnabled());
|
|
}
|
|
}
|
|
}
|