diff options
Diffstat (limited to 'src/app/admin/admin.component.ts')
-rw-r--r-- | src/app/admin/admin.component.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/app/admin/admin.component.ts b/src/app/admin/admin.component.ts index 4bde5b5..74fe86a 100644 --- a/src/app/admin/admin.component.ts +++ b/src/app/admin/admin.component.ts @@ -1,7 +1,7 @@ /* ============LICENSE_START========================================== =================================================================== -Copyright (C) 2018-2020 AT&T Intellectual Property. All rights reserved. +Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. =================================================================== Unless otherwise specified, all software contained herein is licensed @@ -70,8 +70,8 @@ export class AdminComponent implements OnInit { } ngOnInit() { - const apiToken = sessionStorage['apiToken']; - this.currentUser = sessionStorage['userId']; + const apiToken = localStorage['apiToken']; + this.currentUser = localStorage['userId']; if(this.paramShareService.ansibleServerData) { this.ansibleServerData = this.paramShareService.ansibleServerData; @@ -92,14 +92,14 @@ export class AdminComponent implements OnInit { const input = { "input":{ "design-request":{ - "request-id":sessionStorage['apiToken'], + "request-id":localStorage['apiToken'], "action":"getArtifact", "payload":"{\"vnf-type\":\"NULL\",\"vnfc-type\":\"NULL\",\"protocol\":\"\",\"incart\":\"N\",\"action\":\"NULL\",\"artifact-name\":\""+this.fileName+"\",\"artifact-type\":\"APPC-CONFIG\",\"userID\":\"admin\"}" } } }; //const x = JSON.parse(data.input['design-request']['payload']); - //x.userID = sessionStorage['userId']; + //x.userID = localStorage['userId']; //data.input['design-request']['payload'] = JSON.stringify(x); console.log("input to payload====", JSON.stringify(input)); @@ -215,7 +215,7 @@ export class AdminComponent implements OnInit { let input = { "input": { "design-request": { - "request-id": sessionStorage['apiToken'], + "request-id": localStorage['apiToken'], "action": "uploadAdminArtifact", "payload": "{\"userID\": \"admin\",\"vnf-type\" : \"NULL \",\"action\" : \"NULL\",\"artifact-name\" : \""+this.fileName+"\",\"artifact-type\" : \"APPC-CONFIG\",\"artifact-version\" : \"0.1\",\"artifact-contents\":\""+artifactContent+"\"}", } @@ -244,4 +244,4 @@ export class AdminComponent implements OnInit { } } -} +}
\ No newline at end of file |