mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 04:25:08 +00:00
Fix: Navbar vertical puts out wrong classes
This commit is contained in:
parent
0fd8a75f7d
commit
9fbcc20623
|
@ -57,11 +57,11 @@ export class FuseNavbarVerticalComponent implements OnInit, OnDestroy
|
||||||
private fuseMatchMedia: FuseMatchMedia,
|
private fuseMatchMedia: FuseMatchMedia,
|
||||||
private fuseNavigationService: FuseNavigationService,
|
private fuseNavigationService: FuseNavigationService,
|
||||||
private navBarService: FuseNavbarVerticalService,
|
private navBarService: FuseNavbarVerticalService,
|
||||||
public media: ObservableMedia,
|
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private _renderer: Renderer2,
|
private _renderer: Renderer2,
|
||||||
private _elementRef: ElementRef,
|
private _elementRef: ElementRef,
|
||||||
private animationBuilder: AnimationBuilder
|
private animationBuilder: AnimationBuilder,
|
||||||
|
public media: ObservableMedia
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
navBarService.setNavBar(this);
|
navBarService.setNavBar(this);
|
||||||
|
@ -222,15 +222,15 @@ export class FuseNavbarVerticalComponent implements OnInit, OnDestroy
|
||||||
|
|
||||||
updateCssClasses()
|
updateCssClasses()
|
||||||
{
|
{
|
||||||
if ( this.isClosed )
|
if ( !this.isClosed )
|
||||||
{
|
{
|
||||||
this.fuseMainComponent.addClass('fuse-nav-bar-opened');
|
this.fuseMainComponent.addClass('fuse-navbar-opened');
|
||||||
this.fuseMainComponent.removeClass('fuse-nav-bar-closed');
|
this.fuseMainComponent.removeClass('fuse-navbar-closed');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.fuseMainComponent.addClass('fuse-nav-bar-closed');
|
this.fuseMainComponent.addClass('fuse-navbar-closed');
|
||||||
this.fuseMainComponent.removeClass('fuse-nav-bar-opened');
|
this.fuseMainComponent.removeClass('fuse-navbar-opened');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user