From 21a2ff9195761744b9c143a0eb7c90fa11dbeeb6 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 16 Oct 2019 11:50:26 +0200 Subject: [PATCH] Fixed imports due to refactoring --- is-monitor-frontend/src/app/is.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)); }