From 31add77c32b92e24299d546a00bd2b03cb05ab6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ca=C3=B1izares=20Est=C3=A9vez?= Date: Fri, 30 Dec 2016 16:05:16 +0100 Subject: [PATCH] Fix some feedback from internal review --- .../modules/basket/basket-status/basket-status.component.ts | 6 +----- .../Client/modules/shared/services/security.service.ts | 6 +++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.ts b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.ts index abe21eca4..bb2fa25ef 100644 --- a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.ts +++ b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.ts @@ -31,11 +31,7 @@ export class BasketStatusComponent implements OnInit { }); // Subscribe to Drop Basket Observable: - this.basketDroppedSubscription = this.service.basketDroped$.subscribe(res => - this.service.getBasket().subscribe(basket => { - this.badge = basket.items.length; - }) - ); + this.basketDroppedSubscription = this.service.basketDroped$.subscribe(res => this.badge = 0); // Subscribe to login and logout observable this.authSubscription = this.authService.authenticationChallenge$.subscribe(res => { diff --git a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/services/security.service.ts b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/services/security.service.ts index fb5e42331..c3e15806d 100644 --- a/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/services/security.service.ts +++ b/src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/services/security.service.ts @@ -70,7 +70,7 @@ export class SecurityService { public Authorize() { this.ResetAuthorizationData(); - let authorizationUrl = 'http://localhost:5105/connect/authorize'; + let authorizationUrl = 'http://10.0.75.1:5105/connect/authorize'; let client_id = 'js'; let redirect_uri = 'http://localhost:5104/'; let response_type = 'id_token token'; @@ -142,7 +142,7 @@ export class SecurityService { } public Logoff() { - let authorizationUrl = 'http://localhost:5105/connect/endsession'; + let authorizationUrl = 'http://10.0.75.1:5105/connect/endsession'; let id_token_hint = this.retrieve('authorizationDataIdToken'); let post_logout_redirect_uri = 'http://localhost:5104/'; @@ -213,7 +213,7 @@ export class SecurityService { private getUserData = (): Observable => { this.setHeaders(); - return this._http.get('http://localhost:5105/connect/userinfo', { + return this._http.get('http://10.0.75.1:5105/connect/userinfo', { headers: this.headers, body: '' }).map(res => res.json());