summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/controller-catalog/search-catalog/search-catalog.component.ts
diff options
context:
space:
mode:
authorSwapnali Shadanan Pode <sp00501638@techmahindra.com>2019-11-19 12:49:14 +0530
committerSwapnali Shadanan Pode <sp00501638@techmahindra.com>2019-11-19 12:49:14 +0530
commit54fb88cc8abe54300c45f9feec6ceafebc2a9349 (patch)
treec7bb4f2e1f96f1438dc332f54d510d0146f24919 /cds-ui/client/src/app/feature-modules/controller-catalog/search-catalog/search-catalog.component.ts
parent31c2f7de56c5dd90de17ec3026510e5cc660ae67 (diff)
Adding changes for catalog edit and create
Adding changes for catalog edit and create Change-Id: Ib9567e2e483b3abf56f61a77d5c82d4234ee97dc Issue-ID: CCSDK-810 Signed-off-by: Swapnali Shadanan Pode <sp00501638@techmahindra.com>
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/controller-catalog/search-catalog/search-catalog.component.ts')
-rw-r--r--cds-ui/client/src/app/feature-modules/controller-catalog/search-catalog/search-catalog.component.ts25
1 files changed, 13 insertions, 12 deletions
diff --git a/cds-ui/client/src/app/feature-modules/controller-catalog/search-catalog/search-catalog.component.ts b/cds-ui/client/src/app/feature-modules/controller-catalog/search-catalog/search-catalog.component.ts
index 717e1088f..3fb4530e6 100644
--- a/cds-ui/client/src/app/feature-modules/controller-catalog/search-catalog/search-catalog.component.ts
+++ b/cds-ui/client/src/app/feature-modules/controller-catalog/search-catalog/search-catalog.component.ts
@@ -109,19 +109,20 @@ export class SearchCatalogComponent implements OnInit {
if(result == undefined || result == null){
console.log("dialogbox is closed");
}else{
- this.catalog.Model_Name=result['Model_Name'];
- this.catalog.User_id=result['User_id'];
- this.catalog._tags=result['_tags'];
- this.catalog._type=result['_type'];
- this.catalog.Derived_From=result['Derived_From'];
- console.log(this.catalog);
- this.catalogCreateService.saveCatalog(this.catalog)
- .subscribe(response=>{
+ this.catalog.modelName=result['modelName'];
+ this.catalog.derivedFrom=result['derivedFrom'];
+ this.catalog.definitionType=result['definitionType'];
+ this.catalog.definition=result['definition'];
+ this.catalog.tags=result['tags'];
+ this.catalog.updatedBy=result['updatedBy'];
+ console.log(this.catalog);
+ this.catalogCreateService.saveCatalog(this.catalog)
+ .subscribe(response=>{
this.alertService.success("save success"+ response)
- },
- error=>{
- this.alertService.error('Error saving resources');
- })
+ },
+ error=>{
+ this.alertService.error('Error saving resources');
+ })
}
});
}