This is an automated email from the ASF dual-hosted git repository.

ankovalyshyn pushed a commit to branch DLAB-959
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit cd257ede9483919f1bd38ccd355916f8ee4db439
Author: Andriana Kovalyshyn <[email protected]>
AuthorDate: Tue Aug 6 13:32:46 2019 +0300

    [DLAB-959]: changed data format
---
 .../manage-environment/manage-environment-dilog.component.ts      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/administration/management/manage-environment/manage-environment-dilog.component.ts
 
b/services/self-service/src/main/resources/webapp/src/app/administration/management/manage-environment/manage-environment-dilog.component.ts
index 1aac973..70f8fbd 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/administration/management/manage-environment/manage-environment-dilog.component.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/administration/management/manage-environment/manage-environment-dilog.component.ts
@@ -62,12 +62,12 @@ export class ManageEnvironmentComponent implements OnInit {
     this.dialogRef.close(value);
   }
 
-  public applyAction(action, user) {
+  public applyAction(action, project) {
     const dialogRef: MatDialogRef<ConfirmActionDialogComponent> = 
this.dialog.open(
-      ConfirmActionDialogComponent, { data: { action, user: user.value.name }, 
width: '550px', panelClass: 'error-modalbox' });
+      ConfirmActionDialogComponent, { data: { action, project: 
project.value.project }, width: '550px', panelClass: 'error-modalbox' });
 
     dialogRef.afterClosed().subscribe(result => {
-      if (result) this.manageEnv.emit({ action, user: user.value.name });
+      if (result) this.manageEnv.emit({ action, project: { project_name: 
project.value.project } });
     });
   }
 
@@ -107,7 +107,7 @@ export class ManageEnvironmentComponent implements OnInit {
     <button type="button" class="close" 
(click)="dialogRef.close()">&times;</button>
   </div>
   <div mat-dialog-content class="content">
-    <p>Environment of <b>{{ data.user }}</b> will be
+    <p>Environment of <b>{{ data.project }}</b> will be
       <span *ngIf="data.action === 'terminate'"> terminated.</span>
       <span *ngIf="data.action === 'stop'">stopped.</span>
     </p>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to