fixed hierarchy issue

MOE-PHASE-2-SPRINT-1
umasoodch 3 years ago
parent f5f2fc5356
commit 4bc778b2cb

@ -13,8 +13,7 @@
[name]="subordinate.EMPLOYEE_NAME"
[title]="subordinate.POSITION_NAME"
[employeeImage]="subordinate.EMPLOYEE_IMAGE ? 'data:image/png;base64,'+subordinate.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'"
[employeePhoneNumber]="subordinate.EMPLOYEE_MOBILE_NUMBER"
(onGetDetails)="getDetails(subordinate)">
[employeePhoneNumber]="subordinate.EMPLOYEE_MOBILE_NUMBER">
</app-employee-hierarchy-card>
</li>
</ng-container>
@ -24,8 +23,7 @@
[name]="personalInfo.EMPLOYEE_NAME"
[title]="personalInfo.POSITION_NAME"
[employeeImage]="personalInfo.EMPLOYEE_IMAGE ? 'data:image/png;base64,'+personalInfo.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'"
[employeePhoneNumber]="personalInfo.EMPLOYEE_MOBILE_NUMBER"
(onGetDetails)="getDetails('personal')">
[employeePhoneNumber]="personalInfo.EMPLOYEE_MOBILE_NUMBER">
</app-employee-hierarchy-card>
<ul class="contentBg">
<li *ngFor="let subordinate of subordinateHierarchyList;let i=index" class="subordinate">

@ -75,9 +75,10 @@ export class EmployeeHierarchyComponent implements OnInit {
}
public getDetails(i: any) {
console.log(i);
this.common.sharedService.setSharedData(i, 'employee-hierarchy');
this.cs.openEmployeeHierarchy();
if (i.NUM_OF_SUBORDINATES > 0) {
this.common.sharedService.setSharedData(i, 'employee-hierarchy');
this.cs.openEmployeeHierarchy();
}
}
}

Loading…
Cancel
Save