debugging...
This commit is contained in:
parent
b2786fb527
commit
1c31888a2c
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* Spring Framework configuration files.
|
||||
*/
|
||||
package org.gcube.informationsystem.config;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* JPA domain objects.
|
||||
*/
|
||||
package org.gcube.informationsystem.domain;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* Spring Data JPA repositories.
|
||||
*/
|
||||
package org.gcube.informationsystem.repository;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* Spring Security configuration.
|
||||
*/
|
||||
package org.gcube.informationsystem.security;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* Data Transfer Objects.
|
||||
*/
|
||||
package org.gcube.informationsystem.service.dto;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* Service layer beans.
|
||||
*/
|
||||
package org.gcube.informationsystem.service;
|
|
@ -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;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* Spring MVC REST controllers.
|
||||
*/
|
||||
package org.gcube.informationsystem.web.rest;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* View Models used by Spring MVC REST controllers.
|
||||
*/
|
||||
package org.gcube.informationsystem.web.rest.vm;
|
|
@ -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()))
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue