[7.7] Set initial nav drawer isLocked state in Header construc… (#61363)

This commit is contained in:
CJ Cenizal 2020-03-25 16:27:45 -07:00 committed by GitHub
parent 620b088f57
commit 677dfc6567
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,6 +92,9 @@ export class Header extends Component<HeaderProps, State> {
constructor(props: HeaderProps) {
super(props);
let isLocked = false;
props.isLocked$.subscribe(initialIsLocked => (isLocked = initialIsLocked));
this.state = {
appTitle: 'Kibana',
isVisible: true,
@ -101,7 +104,7 @@ export class Header extends Component<HeaderProps, State> {
navControlsLeft: [],
navControlsRight: [],
currentAppId: '',
isLocked: false,
isLocked,
};
}