You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by an...@apache.org on 2019/09/26 10:53:34 UTC
[incubator-dlab] branch DLAB-terraform updated: list of endpoints
mapping added on edit project form
This is an automated email from the ASF dual-hosted git repository.
ankovalyshyn pushed a commit to branch DLAB-terraform
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-terraform by this push:
new 67792d3 list of endpoints mapping added on edit project form
new 1a0624d Merge branch 'DLAB-terraform' of github.com:apache/incubator-dlab into DLAB-terraform
67792d3 is described below
commit 67792d350b9748fa1779127eb49c2e9fc67df01c
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Thu Sep 26 13:52:47 2019 +0300
list of endpoints mapping added on edit project form
---
.../administration/project/project-form/project-form.component.ts | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/services/self-service/src/main/resources/webapp/src/app/administration/project/project-form/project-form.component.ts b/services/self-service/src/main/resources/webapp/src/app/administration/project/project-form/project-form.component.ts
index c791c36..6823de3 100644
--- a/services/self-service/src/main/resources/webapp/src/app/administration/project/project-form/project-form.component.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/administration/project/project-form/project-form.component.ts
@@ -49,7 +49,7 @@ export class ProjectFormComponent implements OnInit {
@Input() item: any;
@Output() update: EventEmitter<{}> = new EventEmitter();
- @ViewChild('stepper', { static: false }) stepper: MatStepper;
+ @ViewChild('stepper', { static: true }) stepper: MatStepper;
private subscriptions: Subscription = new Subscription();
@@ -73,7 +73,6 @@ export class ProjectFormComponent implements OnInit {
if (value) this.projectList = value;
}));
if (this.item) {
-
this.editSpecificProject(this.item);
this.stepper.selectedIndex = 1;
}
@@ -157,7 +156,7 @@ export class ProjectFormComponent implements OnInit {
this.projectForm = this._fb.group({
'key': [''],
'name': [item.name, Validators.required],
- 'endpoints': [item.endpoints],
+ 'endpoints': [item.endpoints.map((item: any) => item.name)],
'tag': [item.tag, Validators.required],
'groups': [item.groups, Validators.required]
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org