aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-05-20 18:26:45 +0530
committerRupinderjeet Singh <rupinsi1@in.ibm.com>2020-05-20 13:50:06 +0000
commitece9a75262670dba3e622cea8452957925ce036d (patch)
treec6dae13b366d7801b26d233467c5a814c5294238 /cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts
parent2f467eb7afcaad363ea08246ec473094a5346c9e (diff)
custom action name
Issue-ID: CCSDK-2269 Change-Id: I16efe1d6bae9ef13f4c70525db4e37d35154479a Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts
index fa3a99b49..fe90b6b90 100644
--- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/designer.component.ts
@@ -40,7 +40,6 @@ import { BluePrintDetailModel } from '../model/BluePrint.detail.model';
import { ActivatedRoute } from '@angular/router';
import { DesignerService } from './designer.service';
-
@Component({
selector: 'app-designer',
templateUrl: './designer.component.html',
@@ -52,6 +51,8 @@ export class DesignerComponent implements OnInit, OnDestroy {
private controllerSideBar: boolean;
private attributesSideBar: boolean;
viewedPackage: BluePrintDetailModel = new BluePrintDetailModel();
+ customActionName: string;
+ showAction: boolean;
boardGraph: joint.dia.Graph;
boardPaper: joint.dia.Paper;
@@ -69,6 +70,7 @@ export class DesignerComponent implements OnInit, OnDestroy {
private designerService: DesignerService) {
this.controllerSideBar = true;
this.attributesSideBar = false;
+ this.showAction = false;
}
private _toggleSidebar1() {
@@ -92,10 +94,13 @@ export class DesignerComponent implements OnInit, OnDestroy {
*/
ngOnInit() {
+ this.customActionName = this.route.snapshot.paramMap.get('actionName');
+ if (this.customActionName != null) {
+ this.showAction = true;
+ }
this.initializeBoard();
this.initializePalette();
this.stencilPaperEventListeners();
-
const id = this.route.snapshot.paramMap.get('id');
this.designerService.getPagedPackages(id).subscribe(
(bluePrintDetailModels) => {
@@ -103,7 +108,6 @@ export class DesignerComponent implements OnInit, OnDestroy {
this.viewedPackage = bluePrintDetailModels[0];
}
});
-
/**
* the code to retrieve from server is commented
*/