From 1c31888a2cc5f27c7993a06b88dadb462fe3f5bf Mon Sep 17 00:00:00 2001 From: mariateresa Date: Fri, 1 Dec 2023 19:10:46 +0100 Subject: [PATCH] debugging... --- .../config/package-info.java | 4 --- .../domain/package-info.java | 4 --- .../repository/package-info.java | 4 --- .../security/package-info.java | 4 --- .../service/dto/package-info.java | 4 --- .../service/package-info.java | 4 --- .../web/rest/errors/package-info.java | 6 ---- .../web/rest/package-info.java | 4 --- .../web/rest/vm/package-info.java | 4 --- src/main/webapp/app/home/home.component.ts | 28 +++++++++++-------- 10 files changed, 16 insertions(+), 50 deletions(-) delete mode 100644 src/main/java/org/gcube/informationsystem/config/package-info.java delete mode 100644 src/main/java/org/gcube/informationsystem/domain/package-info.java delete mode 100644 src/main/java/org/gcube/informationsystem/repository/package-info.java delete mode 100644 src/main/java/org/gcube/informationsystem/security/package-info.java delete mode 100644 src/main/java/org/gcube/informationsystem/service/dto/package-info.java delete mode 100644 src/main/java/org/gcube/informationsystem/service/package-info.java delete mode 100644 src/main/java/org/gcube/informationsystem/web/rest/errors/package-info.java delete mode 100644 src/main/java/org/gcube/informationsystem/web/rest/package-info.java delete mode 100644 src/main/java/org/gcube/informationsystem/web/rest/vm/package-info.java diff --git a/src/main/java/org/gcube/informationsystem/config/package-info.java b/src/main/java/org/gcube/informationsystem/config/package-info.java deleted file mode 100644 index fd1b69c..0000000 --- a/src/main/java/org/gcube/informationsystem/config/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Spring Framework configuration files. - */ -package org.gcube.informationsystem.config; diff --git a/src/main/java/org/gcube/informationsystem/domain/package-info.java b/src/main/java/org/gcube/informationsystem/domain/package-info.java deleted file mode 100644 index a36cc97..0000000 --- a/src/main/java/org/gcube/informationsystem/domain/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * JPA domain objects. - */ -package org.gcube.informationsystem.domain; diff --git a/src/main/java/org/gcube/informationsystem/repository/package-info.java b/src/main/java/org/gcube/informationsystem/repository/package-info.java deleted file mode 100644 index 274e2ac..0000000 --- a/src/main/java/org/gcube/informationsystem/repository/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Spring Data JPA repositories. - */ -package org.gcube.informationsystem.repository; diff --git a/src/main/java/org/gcube/informationsystem/security/package-info.java b/src/main/java/org/gcube/informationsystem/security/package-info.java deleted file mode 100644 index 6576793..0000000 --- a/src/main/java/org/gcube/informationsystem/security/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Spring Security configuration. - */ -package org.gcube.informationsystem.security; diff --git a/src/main/java/org/gcube/informationsystem/service/dto/package-info.java b/src/main/java/org/gcube/informationsystem/service/dto/package-info.java deleted file mode 100644 index ea919b3..0000000 --- a/src/main/java/org/gcube/informationsystem/service/dto/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Data Transfer Objects. - */ -package org.gcube.informationsystem.service.dto; diff --git a/src/main/java/org/gcube/informationsystem/service/package-info.java b/src/main/java/org/gcube/informationsystem/service/package-info.java deleted file mode 100644 index 1d3c6b1..0000000 --- a/src/main/java/org/gcube/informationsystem/service/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Service layer beans. - */ -package org.gcube.informationsystem.service; diff --git a/src/main/java/org/gcube/informationsystem/web/rest/errors/package-info.java b/src/main/java/org/gcube/informationsystem/web/rest/errors/package-info.java deleted file mode 100644 index e2b1ff5..0000000 --- a/src/main/java/org/gcube/informationsystem/web/rest/errors/package-info.java +++ /dev/null @@ -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; diff --git a/src/main/java/org/gcube/informationsystem/web/rest/package-info.java b/src/main/java/org/gcube/informationsystem/web/rest/package-info.java deleted file mode 100644 index ebb665f..0000000 --- a/src/main/java/org/gcube/informationsystem/web/rest/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Spring MVC REST controllers. - */ -package org.gcube.informationsystem.web.rest; diff --git a/src/main/java/org/gcube/informationsystem/web/rest/vm/package-info.java b/src/main/java/org/gcube/informationsystem/web/rest/vm/package-info.java deleted file mode 100644 index 62f0f32..0000000 --- a/src/main/java/org/gcube/informationsystem/web/rest/vm/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * View Models used by Spring MVC REST controllers. - */ -package org.gcube.informationsystem.web.rest.vm; diff --git a/src/main/webapp/app/home/home.component.ts b/src/main/webapp/app/home/home.component.ts index f3a3c49..3f80151 100644 --- a/src/main/webapp/app/home/home.component.ts +++ b/src/main/webapp/app/home/home.component.ts @@ -5,7 +5,7 @@ /* eslint-disable @typescript-eslint/no-unnecessary-condition */ /* eslint-disable @typescript-eslint/restrict-plus-operands */ // 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 { AccountService } from 'app/core/auth/account.service'; @@ -27,7 +27,7 @@ import { SpinnerLoadingService } from 'app/services/spinner-loading.service'; providers: [ContextsLoaderService], }) -export class HomeComponent implements OnInit, OnDestroy { +export class HomeComponent implements OnInit, OnDestroy, AfterViewInit { account: Account | null = null; myContext: IContextNode | null = null; //stringCtxs: string[]; @@ -71,21 +71,25 @@ export class HomeComponent implements OnInit, OnDestroy { uidfield: [''], }); - this.subscriptions.push(this.progressService.getState() - .pipe() - .subscribe(res => { - this.isLoading = res; - })); - // per la form dei contesti this.ctxLoaderService.fetchAll().subscribe(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())) + ); } /*