This commit is contained in:
tiago.kayaya
2021-08-30 09:06:21 +01:00
154 changed files with 1370 additions and 1456 deletions
+5 -9
View File
@@ -2,12 +2,10 @@ import { Component, OnInit } from '@angular/core';
import { AnimationController, ModalController,Platform } 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.page';
import { AuthService } from 'src/app/services/auth.service';
import { User } from 'src/app/models/user.model';
import { LoginUserRespose } from 'src/app/models/user.model';
import { ProfilePage } from 'src/app/modals/profile/profile.page';
import { StorageService } from '../../services/storage.service';
import { NotificationsService } from '../../services/notifications.service'
import { SessionStore } from 'src/app/store/session.service';
@Component({
selector: 'app-header',
@@ -18,23 +16,21 @@ export class HeaderPage implements OnInit {
searchSubject: string = '';
showSearch = false;
loggeduser: User;
loggeduser: LoginUserRespose;
hideSearchBtn: boolean = false;
notificationdata: any[] = [];
DataArray: Array<object> = [];
notificationLength: 0;
SessionStore = SessionStore
constructor(
private router: Router,
private modalController: ModalController,
private animationController: AnimationController,
private storageservice: StorageService,
private notificatioservice: NotificationsService,
private platform: Platform,
authService: AuthService
) {
this.loggeduser = authService.ValidatedUser;
this.loggeduser = SessionStore.user;
router.events.subscribe((val) => {
this.showSearch = false;
//this.modalController.dismiss();