dataTarget: any = '';
ngUnsubscribe = new Subject();
private designerState: any;
+ packageId: any;
constructor(
private route: ActivatedRoute,
private designerStore: DesignerStore,
private toastService: ToastrService,
private ngxService: NgxUiLoaderService,
- private packageCreationExtractionService: PackageCreationExtractionService
+ private packageCreationExtractionService: PackageCreationExtractionService,
+ private activatedRoute: ActivatedRoute,
) {
super();
this.metadataClasses = this.metadataClasses.replace('complete', '');
this.isSaveEnabled = false;
}
+ this.activatedRoute.paramMap.subscribe(res => {
+ this.packageId = res.get('id');
+ });
}
editBluePrint() {
this.ngxService.start();
- this.configurationDashboardService.deletePackage(this.viewedPackage.id).subscribe(res => {
+ this.configurationDashboardService.deletePackage(this.packageId).subscribe(res => {
this.formTreeData();
this.saveBluePrintToDataBase();