mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[7.7] Set initial nav drawer isLocked state in Header construc… (#61363)
This commit is contained in:
parent
620b088f57
commit
677dfc6567
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue