diff --git a/Mohem/src/app/my-specialist/home/home.component.ts b/Mohem/src/app/my-specialist/home/home.component.ts index 022c0c8f..d820bbaf 100644 --- a/Mohem/src/app/my-specialist/home/home.component.ts +++ b/Mohem/src/app/my-specialist/home/home.component.ts @@ -1,3 +1,4 @@ +import { MyTeamService } from './../../my-team/service/my-team.service'; import { MySpecialistService } from './../service/my-specialist.service'; import { SpecialistResponse } from './../models/specialist.response'; import { Component, OnInit } from '@angular/core'; @@ -134,7 +135,9 @@ export class HomeComponent implements OnInit { } private getSpecialistInfo(i) { // this.navCtrl.push("MyTeamPage", { employee: this.specialistEmpList[i], isSpecialist: true }); - this.cs.openMyTeamPage(); + this.cs.sharedService.setSharedData(this.specialistEmpList[i], MyTeamService.EMPLOYEE_SHARED_DATA); + this.cs.sharedService.setSharedData(true, 'isSpecialist'); + this.cs.openMyTeamDetails(); } doInfinite(infiniteScroll) { if (!this.IsReachEnd) { diff --git a/Mohem/src/app/my-team/details/details.component.html b/Mohem/src/app/my-team/details/details.component.html index e13d5938..7b5e8f3c 100644 --- a/Mohem/src/app/my-team/details/details.component.html +++ b/Mohem/src/app/my-team/details/details.component.html @@ -1,10 +1,7 @@ - - - - + {{headerTitle}}