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/07/25 14:27:14 UTC

[incubator-dlab] branch DLAB-929 updated: [DLAB-943]: fixed passing resources parameters on stop/terminatee actions

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

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


The following commit(s) were added to refs/heads/DLAB-929 by this push:
     new 5687fc0  [DLAB-943]: fixed passing resources parameters on stop/terminatee actions
5687fc0 is described below

commit 5687fc0b9a78b1db2ca65c86eb9f52a41b9aba75
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Thu Jul 25 17:27:04 2019 +0300

    [DLAB-943]: fixed passing resources parameters on stop/terminatee actions
---
 .../management/management-grid/management-grid.component.ts             | 2 +-
 .../main/resources/webapp/src/app/core/services/userResource.service.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/administration/management/management-grid/management-grid.component.ts b/services/self-service/src/main/resources/webapp/src/app/administration/management/management-grid/management-grid.component.ts
index 9034816..828a949 100644
--- a/services/self-service/src/main/resources/webapp/src/app/administration/management/management-grid/management-grid.component.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/administration/management/management-grid/management-grid.component.ts
@@ -70,7 +70,7 @@ export class ManagementGridComponent implements OnInit {
     this.refreshGrid.emit();
   }
 
-  toggleResourceAction(environment, action: string, resource?) {
+  toggleResourceAction(environment: any, action: string, resource?): void {
     if (resource) {
       const resource_name = resource ? resource.computational_name : environment.name;
       this.dialog.open(ReconfirmationDialogComponent, {
diff --git a/services/self-service/src/main/resources/webapp/src/app/core/services/userResource.service.ts b/services/self-service/src/main/resources/webapp/src/app/core/services/userResource.service.ts
index 9c9d96e..0cb102c 100644
--- a/services/self-service/src/main/resources/webapp/src/app/core/services/userResource.service.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/core/services/userResource.service.ts
@@ -109,7 +109,7 @@ export class UserResourceService {
         catchError(ErrorUtils.handleServiceError));
   }
 
-  public toggleStopStartAction(project, notebook: string, resource: string, action): Observable<{}> {
+  public toggleStopStartAction(project: string, notebook: string, resource: string, action): Observable<{}> {
     const url = `/${project}/${notebook}/${resource}/${action}`;
     if (action === 'stop') {
       return this.applicationServiceFacade


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org