Skip to content

Commit

Permalink
Merge pull request #415 from kac89/dev
Browse files Browse the repository at this point in the history
up
  • Loading branch information
kac89 authored Aug 20, 2024
2 parents 0cf9cc5 + 5a59ea5 commit 0443955
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/app/templates-list/templates-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,17 @@ export class TemplatesListComponent implements OnInit {
@ViewChild(MatSort) sort: MatSort;

constructor(private http: HttpClient, public dialog: MatDialog, private indexeddbService: IndexeddbService,
private apiService: ApiService, public sessionsub: SessionstorageserviceService) { }
private apiService: ApiService, public sessionsub: SessionstorageserviceService) {

ngOnInit() {
this.getvulnlistStatus = 'Loading...';

// get report profiles
this.gettemplates();

}

ngOnInit() { }

gettemplates() {
this.indexeddbService.retrieveReportTemplates().then(ret => {
if (ret) {
Expand All @@ -82,8 +83,12 @@ export class TemplatesListComponent implements OnInit {
this.getvulnlistStatus = '';
});
}

}).then(() => {

this.getAPITemplates();
});

}).catch(() => { });
}

getAPITemplates() {
Expand Down Expand Up @@ -117,7 +122,6 @@ export class TemplatesListComponent implements OnInit {
this.dataSource.paginator = this.paginator;
this.getvulnlistStatus = '';


//this.msg = '';
}).catch(() => { });

Expand Down

0 comments on commit 0443955

Please sign in to comment.