From 85d28fc27ffc908f4707f5d98b4387931011d6ca Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Thu, 18 Jul 2019 15:42:55 +0300 Subject: [PATCH] My Specialist Issue Resolved --- Mohem/src/app/my-specialist/home/home.component.ts | 5 ++++- Mohem/src/app/my-team/details/details.component.html | 5 +---- Mohem/src/app/my-team/details/details.component.ts | 6 ++++++ 3 files changed, 11 insertions(+), 5 deletions(-) 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}}