debugging...

This commit is contained in:
Maria Teresa Paratore 2023-12-01 19:10:46 +01:00
parent b2786fb527
commit 1c31888a2c
10 changed files with 16 additions and 50 deletions

View File

@ -1,4 +0,0 @@
/**
* Spring Framework configuration files.
*/
package org.gcube.informationsystem.config;

View File

@ -1,4 +0,0 @@
/**
* JPA domain objects.
*/
package org.gcube.informationsystem.domain;

View File

@ -1,4 +0,0 @@
/**
* Spring Data JPA repositories.
*/
package org.gcube.informationsystem.repository;

View File

@ -1,4 +0,0 @@
/**
* Spring Security configuration.
*/
package org.gcube.informationsystem.security;

View File

@ -1,4 +0,0 @@
/**
* Data Transfer Objects.
*/
package org.gcube.informationsystem.service.dto;

View File

@ -1,4 +0,0 @@
/**
* Service layer beans.
*/
package org.gcube.informationsystem.service;

View File

@ -1,6 +0,0 @@
/**
* Specific errors used with Zalando's "problem-spring-web" library.
*
* More information on https://github.com/zalando/problem-spring-web
*/
package org.gcube.informationsystem.web.rest.errors;

View File

@ -1,4 +0,0 @@
/**
* Spring MVC REST controllers.
*/
package org.gcube.informationsystem.web.rest;

View File

@ -1,4 +0,0 @@
/**
* View Models used by Spring MVC REST controllers.
*/
package org.gcube.informationsystem.web.rest.vm;

View File

@ -5,7 +5,7 @@
/* eslint-disable @typescript-eslint/no-unnecessary-condition */ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
/* eslint-disable @typescript-eslint/restrict-plus-operands */ /* eslint-disable @typescript-eslint/restrict-plus-operands */
// eslint-disable-next-line @typescript-eslint/no-unsafe-return // eslint-disable-next-line @typescript-eslint/no-unsafe-return
import { Component, OnDestroy, OnInit, ViewChild,ElementRef } from '@angular/core'; import { Component, OnDestroy, OnInit, ViewChild,ElementRef, AfterContentInit, AfterViewInit } from '@angular/core';
import { LoginService } from 'app/login/login.service'; import { LoginService } from 'app/login/login.service';
import { AccountService } from 'app/core/auth/account.service'; import { AccountService } from 'app/core/auth/account.service';
@ -27,7 +27,7 @@ import { SpinnerLoadingService } from 'app/services/spinner-loading.service';
providers: [ContextsLoaderService], providers: [ContextsLoaderService],
}) })
export class HomeComponent implements OnInit, OnDestroy { export class HomeComponent implements OnInit, OnDestroy, AfterViewInit {
account: Account | null = null; account: Account | null = null;
myContext: IContextNode | null = null; myContext: IContextNode | null = null;
//stringCtxs: string[]; //stringCtxs: string[];
@ -71,21 +71,25 @@ export class HomeComponent implements OnInit, OnDestroy {
uidfield: [''], uidfield: [''],
}); });
this.subscriptions.push(this.progressService.getState()
.pipe()
.subscribe(res => {
this.isLoading = res;
}));
// 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;
}); });
this.filteredContexts = this.chooseContextForm.get('namefield').valueChanges.pipe(
startWith(''),
map(ctx => (ctx ? this.filterContexts(ctx/*,contextInput*/) : this.allCtxs.slice())) this.subscriptions.push(this.progressService.getState()
); .pipe()
.subscribe(res => {
this.isLoading = res;
}));
}
ngAfterViewInit(): void {
this.filteredContexts = this.chooseContextForm.get('namefield').valueChanges.pipe(
startWith(''),
map(ctx => (ctx ? this.filterContexts(ctx/*,contextInput*/) : this.allCtxs.slice()))
);
} }
/* /*