Merge branch 'MOE_MAIN-COLOR_CHANGES' of https://gitlab.com/Cloud_Solution/mohemm_moe into MOE_MAIN-COLOR_CHANGES

MOE_MAIN-COLOR_CHANGES
umasoodch 3 years ago
commit a892f75203

@ -10,9 +10,9 @@
<ion-row>
<p [ngClass]=" direction == 'ltr' ? 'Text' : 'Text-ar'">{{ts.trPK('userProfile','performance-evaluation')}}</p>
<div class="gauge" >
<div class="gauge" *ngIf="performanceData.length >0">
<ngx-charts-gauge
[view]="view"
[scheme]="colorScheme"
[results]="performanceData"
min="0"

@ -73,9 +73,10 @@ export class PerformanceEvaluationComponent implements OnInit {
}
ngAfterViewInit() {
document.querySelector('svg .gauge.chart > text').remove();
}
// ngAfterViewInit() {
// if(this.performanceData.length)
// document.querySelector('svg .gauge.chart > text').remove();
// }
getProfile() {
console.log('getProfile');
@ -113,10 +114,15 @@ export class PerformanceEvaluationComponent implements OnInit {
this.performanceData.push({ name: this.appraisalArr[i].APPRAISAL_YEAR, value: parseFloat(this.appraisalArr[i].APPRAISAL_SCORE)});
}
this.cs.sharedService.setSharedData(this.performanceData, PerformanceAppraisalResponse.PERFORMANCE_DATA);
this.cs.openPerformanceevaluation();
setTimeout(()=>{
document.querySelector('svg .gauge.chart > text').remove();
},100)
// this.cs.openPerformanceevaluation();
} else {
let msg: string = this.ts.trPK("userProfile", "no-appraisal");
this.cs.presentAlert(msg);
this.cs.presentAlert(msg, ()=>{
this.cs.back();
});
}
}
}

Loading…
Cancel
Save