diff --git a/Mohem/src/app/app.component.ts b/Mohem/src/app/app.component.ts index 5dfb89d4..ebc17258 100644 --- a/Mohem/src/app/app.component.ts +++ b/Mohem/src/app/app.component.ts @@ -206,10 +206,10 @@ export class AppComponent implements OnInit { this.user_image = user.EMPLOYEE_IMAGE ? 'data:image/png;base64,' + user.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'; } // this.User_Job_name = user.JOB_NAME; - let jobTitle = user.POSITION_NAME.split('.'); - if (jobTitle && jobTitle.length > 1) { - this.User_Job_name = jobTitle[0] + " " + jobTitle[1]; - } + let jobTitle = user.POSITION_NAME; + // if (jobTitle && jobTitle.length > 1) { + this.User_Job_name = jobTitle; + // } //erm channel // if (!CommonService.SKIP) // this.cs.navigateForward('/erm-channel/survey'); diff --git a/Mohem/src/app/my-team/details/details.component.ts b/Mohem/src/app/my-team/details/details.component.ts index 73851fba..b6533a44 100644 --- a/Mohem/src/app/my-team/details/details.component.ts +++ b/Mohem/src/app/my-team/details/details.component.ts @@ -245,10 +245,10 @@ export class DetailsComponent implements OnInit { this.employee = this.common.sharedService.getSharedData(MyTeamService.EMPLOYEE_SHARED_DATA, false); console.log(this.employee); - let jobTitle = this.employee.POSITION_NAME.split('.'); - if (jobTitle && jobTitle.length > 1) { - this.jobName = jobTitle[0] + " " + jobTitle[1]; - } + let jobTitle = this.employee.POSITION_NAME; + // if (jobTitle && jobTitle.length > 1) { + this.jobName = jobTitle; + // } const request = { P_SELECTED_EMPLOYEE_NUMBER: this.employee.EMPLOYEE_NUMBER diff --git a/Mohem/src/app/profile/home/home.component.ts b/Mohem/src/app/profile/home/home.component.ts index c6ae7a16..eb8a2955 100644 --- a/Mohem/src/app/profile/home/home.component.ts +++ b/Mohem/src/app/profile/home/home.component.ts @@ -167,10 +167,10 @@ export class HomeComponent implements OnInit { this.personalInfo = user; this.getPhoneNumbers(); this.getContactInfo(); - let jobTitle = user.POSITION_NAME.split('.'); - if (jobTitle && jobTitle.length > 1) { - this.jobName = jobTitle[0] + " " + jobTitle[1]; - } + let jobTitle = user.POSITION_NAME; + // if (jobTitle && jobTitle.length > 1) { + this.jobName = jobTitle; + // } if (this.cs.getUpdateImage().status) { this.user_image = this.sanitizer.bypassSecurityTrustUrl('data:image/png;base64,' + this.cs.getUpdateImage().img);