Skip to content

Commit

Permalink
chore(client/ts): port left_pane_container
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jan 18, 2025
1 parent 8e3faff commit c7e688b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import options from "../../services/options.js";
import FlexContainer from "./flex_container.js";
import appContext from "../../components/app_context.js";
import appContext, { type EventData } from "../../components/app_context.js";
import type Component from "../../components/component.js";

export default class LeftPaneContainer extends FlexContainer {
export default class LeftPaneContainer extends FlexContainer<Component> {
constructor() {
super("column");

Expand All @@ -15,7 +16,7 @@ export default class LeftPaneContainer extends FlexContainer {
return super.isEnabled() && options.is("leftPaneVisible");
}

entitiesReloadedEvent({ loadResults }) {
entitiesReloadedEvent({ loadResults }: EventData<"entitiesReloaded">) {
if (loadResults.isOptionReloaded("leftPaneVisible")) {
const visible = this.isEnabled();
this.toggleInt(visible);
Expand Down

0 comments on commit c7e688b

Please sign in to comment.