Hima %!s(int64=5) %!d(string=hai) anos
pai
achega
37e4a29adc

+ 3 - 3
src/app/app.component.html

@@ -8,9 +8,9 @@
 
  <app-header></app-header>
 
-    <div class="routerLinkContainer-w" [style.min-height.px]="myInnerHeight">
-        <router-outlet></router-outlet>
-    </div>
+<div class="routerLinkContainer-w" [style.min-height.px]="myInnerHeight">
+    <router-outlet></router-outlet>
+</div>
 
 <app-footer></app-footer>
 

+ 9 - 2
src/app/app.component.ts

@@ -13,11 +13,18 @@ import { Component, OnInit } from '@angular/core';
 export class AppComponent implements OnInit {
 
   myInnerHeight = window.innerHeight;
-
-constructor(private spinner: NgxSpinnerService) {
+  dataLoginUser: any;
+  
+constructor(private spinner: NgxSpinnerService, 
+  private authSer: AuthServiceService) {
   this.spinner.show();
 }
   ngOnInit() {
+    if(!this.authSer.isAuthenticated()) {
+      console.log('user data ', this.authSer.returnUserData());
+      this.dataLoginUser = JSON.parse(localStorage.getItem('userData'));
+      console.log('data loginnnnn', this.dataLoginUser);
+    }
 
   }
 

+ 1 - 1
src/app/dashboard/header/header.component.html

@@ -1,6 +1,6 @@
 <div class="headerDashBoard" *ngIf="authSer.showDashboardHeader">   
     <!-- top Header content -->
-    <div class="header" *ngIf="authSer.showHeaderDashBoard">
+    <div class="header">
       <div class="container">
         <div class="row">
           <div class="col-6 col-sm-6 col-md-6 col-lg-6">

+ 2 - 2
src/app/dashboard/header/header.component.ts

@@ -26,8 +26,8 @@ export class HeaderComponent implements OnInit {
   ngOnInit() {
 
     this.authSer.showHeaderLogin = false;
-    this.authSer.showHeaderDashBoard = true;
-    this.authSer.showDashboardHeader = true;
+    this.authSer.showHeaderDashBoard = false;
+    this.authSer.showDashboardHeader = false;
 
     this.authSer.checkExternalFooter = false;