Skip to content

Commit

Permalink
Task #231208 - [FE] - Page flickering,Examiner data should update sch…
Browse files Browse the repository at this point in the history
…emawise (#18)
  • Loading branch information
sonaliTekdi authored Nov 29, 2024
1 parent b635c7a commit 497d041
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/app/tables/tables.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class TablesComponent implements OnInit {
selectbutton: any;
selectButtonData: any;
selectedCourse: any;
fullUrl: any;
constructor(
public router: Router,
private successModalService: SuccessModalService,
Expand All @@ -72,12 +73,16 @@ export class TablesComponent implements OnInit {
private location: Location,
private loadingService: LoadingService,
public schemaService: SchemaService,
public sanitizer: DomSanitizer
public sanitizer: DomSanitizer,
private activatedRoute: ActivatedRoute
) {
this.loadingService.show();
}

ngOnInit(): void {
this.activatedRoute.url.subscribe((url) => {
this.fullUrl = this.router.url;
});
// console.log(environment.CLIENT_ID); //kpet it for checking
this.urlSafe = this.sanitizer.bypassSecurityTrustResourceUrl(this.url);
this.sharedDataService.approveCertificate$.subscribe(() => {
Expand Down Expand Up @@ -130,7 +135,8 @@ export class TablesComponent implements OnInit {
this.changeDocument(filter[0].value);
this.model = [];
// console.log("Received Academic Year in Another Component:", this.selectedAcademicYear);
if (this.tableSchema) {

if (this.tableSchema && this.fullUrl !== "/Examiner/list/Examiner") {
this.postData();
}
}, 1000);
Expand Down

0 comments on commit 497d041

Please sign in to comment.