2021-03-28 22:24:24 +02:00
|
|
|
import options from "../../services/options.js";
|
2020-02-07 22:19:35 +01:00
|
|
|
import FlexContainer from "./flex_container.js";
|
2020-02-04 22:46:17 +01:00
|
|
|
|
2021-06-03 22:23:11 +02:00
|
|
|
export default class LeftPaneContainer extends FlexContainer {
|
2021-05-22 21:35:25 +02:00
|
|
|
constructor() {
|
2020-02-27 10:03:14 +01:00
|
|
|
super('column');
|
2020-02-04 22:46:17 +01:00
|
|
|
|
2021-06-03 22:23:11 +02:00
|
|
|
this.id('left-pane');
|
2020-02-27 10:03:14 +01:00
|
|
|
this.css('height', '100%');
|
2021-06-13 22:55:31 +02:00
|
|
|
this.collapsible();
|
2020-02-04 22:46:17 +01:00
|
|
|
}
|
|
|
|
|
2020-02-08 21:54:39 +01:00
|
|
|
isEnabled() {
|
2022-08-04 23:00:32 +02:00
|
|
|
return super.isEnabled() && options.is('leftPaneVisible');
|
2020-02-08 21:54:39 +01:00
|
|
|
}
|
|
|
|
|
2021-05-22 21:35:25 +02:00
|
|
|
entitiesReloadedEvent({loadResults}) {
|
|
|
|
if (loadResults.isOptionReloaded("leftPaneVisible")) {
|
|
|
|
this.toggleInt(this.isEnabled());
|
2020-02-04 22:46:17 +01:00
|
|
|
}
|
|
|
|
}
|
2021-03-28 22:24:24 +02:00
|
|
|
}
|