Skip to content

Commit

Permalink
Pull Request Related to #17 #16
Browse files Browse the repository at this point in the history
Rebuild the application after new pull request
Steps to rebuild the application
1. cd views && ng build
2. cd ..
3. npm start
  • Loading branch information
Gangaiah committed Mar 6, 2018
1 parent 6f2590c commit ec28da5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion views/src/app/add-emulator/addEmulator.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ export class AddEmulatorComponent implements OnInit{
};
this.homeService.setIpAddress( this.addForm.value['sysName']);
this.homeService.getAuthToken(credentials).subscribe(res => {
this.homeService.setAuthHeader(res.headers.get('X-Auth-Token'),res.headers.get('Cookie-Headers'),res.headers.get('location'));
this.homeService.setAuthHeader(res.headers.get('X-Auth-Token'),res.headers.get('Cookie-Headers'),res.headers.get('Location'));
sessionStorage.setItem(this.addForm.value['sysName'],res.headers.get('Cookie-Headers'));
sessionStorage.setItem(this.addForm.value['sysName']+'Location',res.headers.get('Location'));
this.IPInfo.emit({'IPAddress': this.addForm.value['sysName'],'DomainName':this.addForm.value['domainName']});
},
(error) => {
Expand Down
8 changes: 4 additions & 4 deletions views/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ export class HomeComponent {
this.breadCrumKey = new routeParamsPipe().transform(value);
}
logout() {
localStorage.removeItem('user-token');
sessionStorage.clear();
this.homeService.deleteSession().subscribe(res => {

localStorage.removeItem('user-token');
sessionStorage.clear();
this.router.navigate(['']);
});
this.router.navigate(['']);

}

onAddDevice() {
Expand Down
4 changes: 2 additions & 2 deletions views/src/app/home/list-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@

<div class="list-menu" *ngIf="addServices" id="addChildServices" #addCollection >
<div class="resContainer">
<label>Add Collection</label>
<label>Add To Collection</label>
<span class="glyphicon glyphicon-remove" style="float: right;top:10px;font-size:14px;cursor:pointer" (click)="addServices = false"></span>
</div>
<div class="main-menu">
<div style="padding:10px">
<div>
<form class="form-horizontal" [formGroup]="addService">
<div class="form-group">
<label class="col-sm-5 control-label">Collection Name</label>
<label class="col-sm-5 control-label">Name</label>
<div class="col-sm-7">
<input type="text" class="form-control" formControlName="serviceName">
</div>
Expand Down
4 changes: 2 additions & 2 deletions views/src/app/home/list-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ export class ListMenuComponent implements OnInit {
this.sampleData = data;
this.getSubMenuItems(data, this.sysDetails);

this.sysDetails = this.sysDetails.filter(item => {
/* this.sysDetails = this.sysDetails.filter(item => {
var rg = new RegExp(value+'/','i');
return rg.test(item['@odata.id']);
});
});*/
this.getKeyValues(data);
this.showLinks.map(item => {
if(item['link']) {
Expand Down

0 comments on commit ec28da5

Please sign in to comment.