Fixe ageanda timeline centalizer and header profile

This commit is contained in:
Peter Maquiran
2021-05-12 11:34:28 +01:00
parent 3df73c063a
commit 695bd3a6df
7 changed files with 60 additions and 35 deletions
+7 -6
View File
@@ -3,6 +3,8 @@ import { AnimationController, ModalController } from '@ionic/angular';
import { SearchPage } from 'src/app/pages/search/search.page';
import { Router } from '@angular/router';
import { ProfileComponent } from '../headers/header-no-search/profile/profile.component';
import { AuthService } from 'src/app/services/auth.service';
import { User } from 'src/app/models/user.model';
@Component({
selector: 'app-header',
@@ -11,17 +13,16 @@ import { ProfileComponent } from '../headers/header-no-search/profile/profile.co
})
export class HeaderPage implements OnInit {
profile: string = 'mdgpr';
searchSubject: string = '';
showSearch=false;
loggeduser: User;
constructor(
private router: Router,private modalController: ModalController,
private animationController: AnimationController,) {
private animationController: AnimationController,
authService: AuthService) {
window['header'] = (profile:string) => {
this.profile = profile;
}
this.loggeduser = authService.ValidatedUser;
router.events.subscribe((val) => {