mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 00:10:14 +01:00
fix(dashboard): improve electricity table styles
This commit is contained in:
parent
009e5788ac
commit
7616cb8a4a
6 changed files with 129 additions and 53 deletions
|
|
@ -2,6 +2,7 @@ import { Component } from '@angular/core';
|
|||
|
||||
import { NgaSidebarService, NgaMenuService } from '@akveo/nga-theme';
|
||||
import { NgaThemeService } from '@akveo/nga-theme/services/theme.service';
|
||||
import { UserService } from '../../../@core/data/users.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-header',
|
||||
|
|
@ -22,7 +23,7 @@ import { NgaThemeService } from '@akveo/nga-theme/services/theme.service';
|
|||
<nga-action icon="ion-ios-email-outline"></nga-action>
|
||||
<nga-action disabled icon="ion-ios-bell-outline"></nga-action>
|
||||
<nga-action>
|
||||
<nga-user [menu]="userMenu" name="Han Solo"></nga-user>
|
||||
<nga-user [menu]="userMenu" [name]="user.name" [picture]="user.picture"></nga-user>
|
||||
</nga-action>
|
||||
<nga-action icon="ion-ios-gear-outline"></nga-action>
|
||||
</nga-actions>
|
||||
|
|
@ -30,6 +31,8 @@ import { NgaThemeService } from '@akveo/nga-theme/services/theme.service';
|
|||
})
|
||||
export class HeaderComponent {
|
||||
|
||||
user: any;
|
||||
|
||||
userMenu = [
|
||||
{
|
||||
title: 'Profile',
|
||||
|
|
@ -41,7 +44,9 @@ export class HeaderComponent {
|
|||
|
||||
constructor(private sidebarService: NgaSidebarService,
|
||||
private menuService: NgaMenuService,
|
||||
private themeService: NgaThemeService) {
|
||||
private themeService: NgaThemeService,
|
||||
private userService: UserService) {
|
||||
this.user = this.userService.getUsers().nick;
|
||||
}
|
||||
|
||||
toggleSidebar(): boolean {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue