Response message parsing for save 04/97304/2
authorEzhilarasi <ezhrajam@in.ibm.com>
Fri, 18 Oct 2019 11:10:07 +0000 (16:40 +0530)
committerEzhilarasi R <ezhrajam@in.ibm.com>
Fri, 18 Oct 2019 11:22:40 +0000 (11:22 +0000)
Change-Id: I79b6b14ee9154801f4e8d05f7750603c7de5d4ba
Issue-ID: CCSDK-1785
Signed-off-by: Ezhilarasi <ezhrajam@in.ibm.com>
cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.service.ts
cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.html

index f1d1d14..ceaace3 100644 (file)
@@ -49,11 +49,11 @@ export class EditorService {
     }
     saveBlueprint(body: any | null, options?: any): Observable<any> {
 
-        return this.api.post(BlueprintURLs.save, body, options);
+        return this.api.post(BlueprintURLs.save, body, { responseType: 'text' });
     }
     publishBlueprint(body: any | null, options?: any): Observable<any> {
 
-        return this.api.post(BlueprintURLs.publish, body, options);
+        return this.api.post(BlueprintURLs.publish, body, { responseType: 'text' });
     }
 
     deployPost(body: any | null, options?: any): Observable<any> {
index a6612d5..3740ced 100644 (file)
@@ -38,7 +38,7 @@ limitations under the License.
                 <button mat-menu-item (click)="saveToBlueprintProcessor()">Deploy</button>
                 <!-- <button mat-menu-item (click)="processBlueprint()">Test</button> -->
             </mat-menu>
-            <button class="btn-active" (click)="publishToControllerBlueprint()">Publish</button>
+            <!-- <button class="btn-active" (click)="publishToControllerBlueprint()">Publish</button> -->
             <button class="btn-active" (click)="saveToControllerBlueprint()">Save</button>
             <button class="btn-active" (click)="getEnriched()">Enrich</button>