diff --git a/Mohem/src/app/profile/performance-evaluation/performance-evaluation.component.html b/Mohem/src/app/profile/performance-evaluation/performance-evaluation.component.html index cba2611b..a9af9afe 100644 --- a/Mohem/src/app/profile/performance-evaluation/performance-evaluation.component.html +++ b/Mohem/src/app/profile/performance-evaluation/performance-evaluation.component.html @@ -10,9 +10,9 @@

{{ts.trPK('userProfile','performance-evaluation')}}

-
+
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(); + }); } } }