diff --git a/is-monitor-frontend/src/app/is.service.ts b/is-monitor-frontend/src/app/is.service.ts index 0ad81ba..0d63c22 100644 --- a/is-monitor-frontend/src/app/is.service.ts +++ b/is-monitor-frontend/src/app/is.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable, of } from 'rxjs'; import { catchError } from 'rxjs/operators'; -import { ISType } from './ISType'; +import { TypeDefinition } from './is-model/types/TypeDefinition'; import { types } from './types'; import { list } from './list'; @@ -39,12 +39,12 @@ export class IsService { }; } - public getResourceTypes(callback: (isTypes: ISType[]) => void): void { + public getResourceTypes(callback: (isTypes: TypeDefinition[]) => void): void { const url = this.typesURL + '/Resource?polymorphic=true&gcube-token=' + this.token; // const observable: Observable = of(types); - const observable: Observable = this.httpClient.get(url); + const observable: Observable = this.httpClient.get(url); observable.pipe( - catchError(this.handleError('getResourceTypes()', types)) + catchError(this.handleError('getResourceTypes()', types)) ).subscribe(data => callback(data)); }