File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,10 @@ export class AppSidebarComponent implements OnInit, OnDestroy {
53
53
this . isCompact ( this . compact ) ;
54
54
this . isFixed ( this . fixed ) ;
55
55
this . isOffCanvas ( this . offCanvas ) ;
56
+ this . sidebarService . toggle ( { minimize : this . minimized } ) ;
56
57
this . subscriptionEvents = this . sidebarService . events$ . subscribe ( action => {
57
- if ( action . minimize === 'toggle' ) {
58
- this . toggleMinimized ( ) ;
58
+ if ( action . minimize !== undefined ) {
59
+ action . minimize === 'toggle' ? this . toggleMinimized ( ) : this . minimized = ! ! action . minimize ;
59
60
}
60
61
} ) ;
61
62
}
@@ -64,6 +65,7 @@ export class AppSidebarComponent implements OnInit, OnDestroy {
64
65
this . subscriptionEvents . unsubscribe ( ) ;
65
66
this . minimizedChange . complete ( ) ;
66
67
this . renderer . removeClass ( this . document . body , 'sidebar-fixed' ) ;
68
+ this . _updateMinimized ( false ) ;
67
69
}
68
70
69
71
isCompact ( compact : boolean = this . compact ) : void {
You can’t perform that action at this time.
0 commit comments