summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts
diff options
context:
space:
mode:
authorShaabanEltanany <shaaban.eltanany.ext@orange.com>2020-08-24 14:58:43 +0200
committerKAPIL SINGAL <ks220y@att.com>2020-08-24 18:07:00 +0000
commit744fbbf05007dd565c6ca49e22ca40b43128bc20 (patch)
tree98eb668aa7b4f0302c30e9b26e03d657fa1ec3fc /cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts
parentd8717dfc2217fd641279d835c53bb5557b4384a7 (diff)
fixing issues in configuration package
Issue-ID: CCSDK-2336 Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com> Change-Id: Iae9f5151bc222b0b599a666218f3867269edc5e8
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts
index e668b6417..b4ad02364 100644
--- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts
@@ -15,7 +15,6 @@ import {saveAs} from 'file-saver';
import {DesignerStore} from '../designer/designer.store';
import {ToastrService} from 'ngx-toastr';
import {NgxFileDropEntry} from 'ngx-file-drop';
-import {TopologyTemplate} from '../designer/model/designer.topologyTemplate.model';
@Component({
selector: 'app-configuration-dashboard',
@@ -56,6 +55,10 @@ export class ConfigurationDashboardComponent implements OnInit {
this.vlbDefinition.topology_template = new TemplateTopology();
this.elementRef.nativeElement.focus();
+ this.refreshCurrentPackage();
+ }
+
+ private refreshCurrentPackage() {
this.id = this.route.snapshot.paramMap.get('id');
this.configurationDashboardService.getPagedPackages(this.id).subscribe(
(bluePrintDetailModels) => {
@@ -65,10 +68,6 @@ export class ConfigurationDashboardComponent implements OnInit {
this.packageCreationStore.clear();
}
});
-
- if (this.route.snapshot.paramMap.has('id')) {
- console.log('The id is equal to ' + this.route.snapshot.paramMap.get('id'));
- }
}
private downloadCBAPackage(bluePrintDetailModels: BluePrintDetailModel) {
@@ -210,8 +209,8 @@ export class ConfigurationDashboardComponent implements OnInit {
}
- goBacktoDashboard() {
- this.router.navigate(['/packages']);
+ discardChanges() {
+ this.refreshCurrentPackage();
}
downloadPackage(artifactName: string, artifactVersion: string) {
@@ -244,7 +243,7 @@ export class ConfigurationDashboardComponent implements OnInit {
}
textChanged($event: {}) {
- this.packageCreationStore.addTopologyTemplate(this.vlbDefinition.topology_template);
+ this.packageCreationStore.addTopologyTemplate(this.vlbDefinition.topology_template);
}
enrichBluePrint() {