diff options
author | KAPIL SINGAL <ks220y@att.com> | 2020-03-02 15:30:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-03-02 15:30:09 +0000 |
commit | dd60dcc5cc258f306a8ae2041f72a3139eb7973b (patch) | |
tree | 597681ad9f4e8b6672064ea3f962aaf3eff5317c /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts | |
parent | 3b46e9facf5f06a0170fbad120e2402e4bbd1279 (diff) | |
parent | 6edf1f95883e230bcddb7dfbcbafc6d7527a5ce7 (diff) |
Merge "Display Mapping result in view table."
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts index 7079f8404..106765834 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/template-mapping.component.ts @@ -1,4 +1,6 @@ -import {Component, OnInit} from '@angular/core'; +import { Component, OnInit } from '@angular/core'; +import { ActivatedRoute } from '@angular/router'; +import { PackageCreationStore } from '../package-creation.store'; @Component({ selector: 'app-template-mapping', @@ -9,12 +11,19 @@ export class TemplateMappingComponent implements OnInit { creationView = true; listView = false; - constructor() { + constructor(private route: ActivatedRoute, private pakcageStore: PackageCreationStore) { } ngOnInit() { + if (this.route.snapshot.paramMap.has('id')) { + console.log('Edit mode'); + this.creationView = false; + this.listView = false; + } else { + console.log('Create mode'); + this.pakcageStore.clear(); + } } - openCreationView() { this.creationView = false; this.listView = true; |