My Specialist Issue Resolved

master
haroon amjad 6 years ago
parent a4d0efe6c0
commit 85d28fc27f

@ -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) {

@ -1,10 +1,7 @@
<ion-header>
<ion-toolbar class="header-toolbar">
<ion-buttons slot="start">
<ion-back-button color="light" class="btnBack"></ion-back-button>
<ion-icon class="search-icons" color="light" name="arrow-back" *ngIf="modalFlag" (click)="dismiss()"></ion-icon>
</ion-buttons>
<nav-buttons></nav-buttons>
<ion-title color="light" >{{headerTitle}}</ion-title>
<ion-buttons slot="end">
<button ion-button icon-only class="btnBack" *ngIf="isSpecialist == false" (click)="goToSubordinate();">

@ -49,6 +49,12 @@ export class DetailsComponent implements OnInit {
false
);
this.headerTitle = this.selMenu.List_Menu.MENU_NAME;
this.isSpecialist = this.common.sharedService.getSharedData(
'isSpecialist',
false
);
// this.isSpecialist = this.navParams.get("isSpecialist")
// ? this.navParams.get("isSpecialist")
// : false;

Loading…
Cancel
Save