fixed logged in user.
This commit is contained in:
parent
f751470a50
commit
09d667b5e5
|
@ -61,7 +61,7 @@
|
||||||
<div class="az-img-user">
|
<div class="az-img-user">
|
||||||
<img src="assets/logo/logo-text.png" alt="">
|
<img src="assets/logo/logo-text.png" alt="">
|
||||||
</div><!-- az-img-user -->
|
</div><!-- az-img-user -->
|
||||||
<h6>John Doe</h6>
|
<h6>{{current_user}}</h6>
|
||||||
<span>Adminstrator</span>
|
<span>Adminstrator</span>
|
||||||
</div><!-- az-header-profile -->
|
</div><!-- az-header-profile -->
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,11 @@ import { Router } from '@angular/router';
|
||||||
styleUrls: ['./header.component.scss']
|
styleUrls: ['./header.component.scss']
|
||||||
})
|
})
|
||||||
export class HeaderComponent implements OnInit {
|
export class HeaderComponent implements OnInit {
|
||||||
|
current_user: string
|
||||||
constructor(private fastenDb: FastenDbService, private router: Router) { }
|
constructor(private fastenDb: FastenDbService, private router: Router) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.current_user = this.fastenDb.current_user
|
||||||
}
|
}
|
||||||
|
|
||||||
closeMenu(e) {
|
closeMenu(e) {
|
||||||
|
|
Loading…
Reference in New Issue