fix(dashboard): improve electricity table styles

This commit is contained in:
KostyaDanovsky 2017-07-13 11:49:38 +03:00
parent 009e5788ac
commit 7616cb8a4a
6 changed files with 129 additions and 53 deletions

View file

@ -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 {