minor changes

This commit is contained in:
Maria Teresa Paratore 2023-11-22 13:33:36 +01:00
parent e07d3e3fd9
commit 9e6e11ecae
1 changed files with 8 additions and 17 deletions

View File

@ -69,9 +69,14 @@ export class HomeComponent implements OnInit {
}); });
//TODO: DEBUG HERE //TODO: DEBUG HERE
//vedi: https://medium.com/swlh/angular-loading-spinner-using-http-interceptor-63c1bb76517b //sembra tutto giusto, ma non viene rilevato l'aggiornamento del valore booleano
//per ora ascolto solo il caricamento dei contesti
this.listenToLoading(); this.progressService.getState()
.subscribe((loading) => {
this.loading = loading;
console.debug("**********this.loading..."+this.loading);
});
// per la form dei contesti // per la form dei contesti
this.ctxLoaderService.fetchAll().subscribe(res => { this.ctxLoaderService.fetchAll().subscribe(res => {
this.allCtxs = res; this.allCtxs = res;
@ -84,20 +89,6 @@ export class HomeComponent implements OnInit {
} }
/**
* Listen to the loadingSub property in the LoadingService class. This drives the
* display of the loading spinner.
*/
listenToLoading(): void {
this.progressService.getState()
.subscribe((loading) => {
this.loading = loading;
console.debug("**********this.loading..."+this.loading);
});
}
//mettere ANY come tipo dell'argomento per evitare errore TypeScript nella map!! //mettere ANY come tipo dell'argomento per evitare errore TypeScript nella map!!
filterContexts(/*ctx: IContextNode,*/ item: any): IContextNode[] { filterContexts(/*ctx: IContextNode,*/ item: any): IContextNode[] {
if(!instanceOfContext(item)){ if(!instanceOfContext(item)){