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/20 10:54:33 UTC

[incubator-dlab] 06/06: [DLAB-1079]: key format for saving added

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

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

commit 4c0bdaea264c10f8dd8e192b9cc813ff8ff4e315
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Fri Sep 20 13:53:20 2019 +0300

    [DLAB-1079]: key format for saving added
---
 .../administration/project/project-form/project-form.component.ts    | 5 +++--
 1 file changed, 3 insertions(+), 2 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 f8d3320..c4ad550 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
@@ -128,10 +128,11 @@ export class ProjectFormComponent implements OnInit {
   public generateUserAccessKey() {
     this.userAccessKeyService.generateAccessKey().subscribe((data: any) => {
       const parsedData = JSON.parse(data.body);
-      FileUtils.downloadFile(data, parsedData.privateKey, 'private');
+      const keyName = `${parsedData.username}.pem`;
+      FileUtils.downloadFile(data, parsedData.privateKey, keyName);
 
       this.projectForm.controls.key.setValue(parsedData.publicKey);
-      this.keyLabel = 'Key is generated';
+      this.keyLabel = keyName;
       this.accessKeyValid = true;
     });
   }


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