From a68a19fcb0b1c9f7d0a91338e08b1854c99cf1c7 Mon Sep 17 00:00:00 2001 From: ShaabanEltanany Date: Sun, 21 Jun 2020 21:48:49 +0200 Subject: solving continuous saving Issue-ID: CCSDK-2336 Signed-off-by: ShaabanEltanany Change-Id: I7e488950a77a19b7b1b4ac2e4c9044698b9ff757 --- .../packages/package-creation/package-creation.service.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts') diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts index 494c9e555..818577a59 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts @@ -26,7 +26,7 @@ import {ApiService} from '../../../../common/core/services/api.service'; import {BlueprintURLs, ResourceDictionaryURLs} from '../../../../common/constants/app-constants'; import {PackagesApiService} from '../packages-api.service'; import {PackagesStore} from '../packages.store'; -import { ResourceDictionary } from './mapping-models/ResourceDictionary.model'; +import {ResourceDictionary} from './mapping-models/ResourceDictionary.model'; @Injectable({ providedIn: 'root' @@ -54,13 +54,8 @@ export class PackageCreationService { const formData = new FormData(); formData.append('file', blob); - this.saveBlueprint(formData) - .subscribe( - data => { - console.log('Success:' + JSON.stringify(data)); - }, error => { - console.log('Error -' + error.message); - }); + return this.saveBlueprint(formData); + } getTemplateAndMapping(variables: string[]): Observable { -- cgit 1.2.3-korg