File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
src/app/shared/themes/components Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ export class HeaderComponent implements OnInit {
59
59
60
60
public loading$ : Observable < boolean > = this . store . select ( selectLoading ) ;
61
61
62
- public logout ( ) {
63
- this . store . dispatch ( logoutAction ( ) ) ;
64
- }
65
-
66
62
get openCloseTrigger ( ) {
67
63
return this . mobileMenuOpen ? 'open' : 'closed' ;
68
64
}
69
65
66
+ logout ( ) : void {
67
+ this . store . dispatch ( logoutAction ( ) ) ;
68
+ }
69
+
70
70
toggleMobileMenu ( ) : void {
71
71
this . showDialog = false ;
72
72
this . mobileMenuOpen = ! this . mobileMenuOpen ;
@@ -104,9 +104,11 @@ export class HeaderComponent implements OnInit {
104
104
this . currentTheme = window . localStorage . getItem ( 'theme' ) ! ;
105
105
}
106
106
107
- updateTheme ( theme : string ) {
107
+ updateTheme ( theme : string ) : void {
108
108
document . documentElement . setAttribute ( 'data-theme' , theme ) ;
109
109
window . localStorage . setItem ( 'theme' , theme ) ;
110
+
110
111
this . currentTheme = theme ;
112
+ this . showDialog = false ;
111
113
}
112
114
}
Original file line number Diff line number Diff line change 3
3
< div class ="relative flex items-center px-6 py-8 shrink-0 md:hidden ">
4
4
< logo-svg class ="h-auto w-36 text-slate-900 dark:text-white "> </ logo-svg >
5
5
</ div >
6
- < nav class ="flex flex-col h-full pt-4 pb-8 space-y-8 " aria-label ="Sidebar ">
6
+ < nav class ="flex flex-col h-full pt-4 pb-8 space-y-8 lg:pt-10 " aria-label ="Sidebar ">
7
7
< div *ngFor ="let menu of menus ">
8
8
< h5 class ="px-6 font-mono text-xs font-semibold leading-5 tracking-widest uppercase text-slate-400 sm:px-8 dark:text-slate-300 "> {{ menu.group }}</ h5 >
9
9
< div class ="mt-3 space-y-1 ">
You can’t perform that action at this time.
0 commit comments