My Specialist Issue Resolved

production
haroon amjad 7 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 { MySpecialistService } from './../service/my-specialist.service';
import { SpecialistResponse } from './../models/specialist.response'; import { SpecialistResponse } from './../models/specialist.response';
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
@ -134,7 +135,9 @@ export class HomeComponent implements OnInit {
} }
private getSpecialistInfo(i) { private getSpecialistInfo(i) {
// this.navCtrl.push("MyTeamPage", { employee: this.specialistEmpList[i], isSpecialist: true }); // 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) { doInfinite(infiniteScroll) {
if (!this.IsReachEnd) { if (!this.IsReachEnd) {

@ -1,10 +1,7 @@
<ion-header> <ion-header>
<ion-toolbar class="header-toolbar"> <ion-toolbar class="header-toolbar">
<ion-buttons slot="start"> <nav-buttons></nav-buttons>
<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>
<ion-title color="light" >{{headerTitle}}</ion-title> <ion-title color="light" >{{headerTitle}}</ion-title>
<ion-buttons slot="end"> <ion-buttons slot="end">
<button ion-button icon-only class="btnBack" *ngIf="isSpecialist == false" (click)="goToSubordinate();"> <button ion-button icon-only class="btnBack" *ngIf="isSpecialist == false" (click)="goToSubordinate();">

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

Loading…
Cancel
Save