diff options
Diffstat (limited to 'src/app/admin')
-rw-r--r-- | src/app/admin/admin.component.ts | 14 | ||||
-rw-r--r-- | src/app/admin/view-edit/ansible-server.component.ts | 4 |
2 files changed, 9 insertions, 9 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 diff --git a/src/app/admin/view-edit/ansible-server.component.ts b/src/app/admin/view-edit/ansible-server.component.ts index 6691092..b629b65 100644 --- a/src/app/admin/view-edit/ansible-server.component.ts +++ b/src/app/admin/view-edit/ansible-server.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 @@ -78,7 +78,7 @@ export class AnsibleServerComponent implements OnInit { } ngOnInit() { - this.currentUser = sessionStorage['userId']; + this.currentUser = localStorage['userId']; this.item = JSON.parse(sessionStorage.getItem("ansibleserver")); this.updateIndex = parseInt(sessionStorage.getItem("updateIndex")); console.log("index===>"+this.updateIndex); |