summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/controller-catalog/create-catalog/create-catalog.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/controller-catalog/create-catalog/create-catalog.component.ts')
-rw-r--r--cds-ui/client/src/app/feature-modules/controller-catalog/create-catalog/create-catalog.component.ts29
1 files changed, 16 insertions, 13 deletions
diff --git a/cds-ui/client/src/app/feature-modules/controller-catalog/create-catalog/create-catalog.component.ts b/cds-ui/client/src/app/feature-modules/controller-catalog/create-catalog/create-catalog.component.ts
index 3b8294db9..ad74a9fc3 100644
--- a/cds-ui/client/src/app/feature-modules/controller-catalog/create-catalog/create-catalog.component.ts
+++ b/cds-ui/client/src/app/feature-modules/controller-catalog/create-catalog/create-catalog.component.ts
@@ -97,20 +97,23 @@ export class CreateCatalogComponent implements OnInit {
this.catalog.derivedFrom=this.CatalogFormData.controls['derivedFrom'].value
this.catalog.description=this.CatalogFormData.controls['description'].value
this.catalog.definition=this.data;
+ this.catalog.version="";
+ this.catalog.creationDate="";
console.log(this.catalog);
- let catalogState = {
- catalog: this.catalog
- }
- this.store.dispatch(new SetCatalogState(catalogState));
-
- this.catalogCreateService.saveCatalog(this.catalog)
- .subscribe(response=>{
- this.alertService.success("save success")
- },
- error=>{
- this.alertService.error('Error saving resources');
- })
-
+ let catalogState = {
+ catalog: this.catalog
+ }
+ this.store.dispatch(new SetCatalogState(catalogState));
+
+ this.catalogCreateService.saveCatalog(this.catalog)
+ .subscribe(response=>{
+ this.alertService.success("save success")
+ },
+ error=>{
+ console.log(error);
+ this.alertService.error('Error saving resources');
+ })
+
}
onChange($event) {