From 8bb75a388dfb716e66e7d539ee84ac0abe9d5aa1 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 18 Mar 2019 15:09:51 +0000 Subject: [PATCH] [Trunk|Library]: LayoutService: remove unnesserary import git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55009 d315682c-612b-4755-9ff5-7f18f6832af3 --- services/layout.service.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/services/layout.service.ts b/services/layout.service.ts index aff8c0e6..d7a96eb1 100644 --- a/services/layout.service.ts +++ b/services/layout.service.ts @@ -1,6 +1,5 @@ import {Injectable} from '@angular/core'; import {Http, Response} from '@angular/http'; -import {DivId} from '../../domain/divId'; import {Observable} from 'rxjs/Observable'; import {CustomOptions} from './servicesUtils/customOptions.class'; @@ -23,19 +22,19 @@ export class LayoutService { saveLayout(pid: string, url: string, layout: any) { LayoutService.removeNulls(layout); return this.http.post(url + 'community/' + pid + '/updateLayout', JSON.stringify(layout), CustomOptions.getAuthOptionsWithBody()) - .map(res => res.json()) + .map(res => res.json()) .catch(this.handleError); } getLayout(pid: string, url: string) { return this.http.get(url + 'community/' + pid + '/layout') - .map(res => res.json()) + .map(res => res.json()) .catch(this.handleError); } loadDefaultLayout(pid: string, url: string) { return this.http.post(url + 'community/' + pid + '/resetLayout', null, CustomOptions.getAuthOptionsWithBody()) - .map(res => res.json()) + .map(res => res.json()) .catch(this.handleError); }