1 import {Component} from "@angular/core";
2 import {Select, Store} from "@ngxs/store";
3 import {Subscription} from "rxjs/Subscription";
4 import {GraphState} from "../../../pages/composition/common/store/graph.state";
5 import {OnSidebarOpenOrCloseAction} from "../../../pages/composition/common/store/graph.actions";
8 selector: 'panel-wrapper-component',
9 templateUrl: './panel-wrapper.component.html',
10 styleUrls: ['./panel-wrapper.component.less']
12 export class PanelWrapperComponent {
13 @Select(GraphState.withSidebar) withSidebar$: boolean;
16 subscription: Subscription;
18 constructor(public store: Store) {
21 private toggleSidebarDisplay = () => {
22 // this.withSidebar = !this.withSidebar;
23 this.store.dispatch(new OnSidebarOpenOrCloseAction());