summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard
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/configuration-dashboard
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/configuration-dashboard')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.html4
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts10
2 files changed, 9 insertions, 5 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.html
index a549d54a2..a31c95652 100644
--- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.html
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.html
@@ -209,7 +209,7 @@
</div>
<div class="row">
<div class="col text-center">
- <button class="btn skip-btn">Skip to Designer Canvas</button>
+ <button class="btn skip-btn" (click)="goToDesignerMode(viewedPackage.id)">Skip to Designer Canvas</button>
</div>
</div>
</div>
@@ -220,7 +220,7 @@
class="icon-action-back"></i></button>
<h1>Create Custom Action</h1>
<div class="form-group text-center">
- <input type="text" class="form-control customAction"
+ <input type="text" [(ngModel)]="customActionName" class="form-control customAction"
placeholder="Type Action Name" autofocus>
<button type="button" (click)="goToDesignerMode(viewedPackage.id)" class="btn submit">Start</button>
</div>
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 0578b10f8..19c10c5fd 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
@@ -13,16 +13,18 @@ import {PackageCreationModes} from '../package-creation/creationModes/PackageCre
import {PackageCreationBuilder} from '../package-creation/creationModes/PackageCreationBuilder';
import {saveAs} from 'file-saver';
import {DesignerStore} from '../designer/designer.store';
+import { DesignerService } from '../designer/designer.service';
@Component({
selector: 'app-configuration-dashboard',
templateUrl: './configuration-dashboard.component.html',
- styleUrls: ['./configuration-dashboard.component.css']
+ styleUrls: ['./configuration-dashboard.component.css'],
})
export class ConfigurationDashboardComponent implements OnInit {
viewedPackage: BluePrintDetailModel = new BluePrintDetailModel();
@ViewChild(MetadataTabComponent, {static: false})
private metadataTabComponent: MetadataTabComponent;
+ public customActionName: string;
entryDefinitionKeys: string[] = ['template_tags', 'user-groups',
'author-email', 'template_version', 'template_name', 'template_author'];
@@ -39,7 +41,8 @@ export class ConfigurationDashboardComponent implements OnInit {
private packageCreationStore: PackageCreationStore,
private packageCreationUtils: PackageCreationUtils,
private router: Router,
- private designerStore: DesignerStore) {
+ private designerStore: DesignerStore,
+ private designerService: DesignerService) {
}
ngOnInit() {
@@ -207,6 +210,7 @@ export class ConfigurationDashboardComponent implements OnInit {
}
goToDesignerMode(id) {
- this.router.navigate(['/packages/designer', id]);
+ // this.designerService.setActionName(this.customActionName);
+ this.router.navigate(['/packages/designer', id, {actionName: this.customActionName}]);
}
}