Skip to content

Commit 31add77

Browse files
author
Carlos Cañizares Estévez
committed
Fix some feedback from internal review
1 parent f2681b9 commit 31add77

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ export class BasketStatusComponent implements OnInit {
3131
});
3232

3333
// Subscribe to Drop Basket Observable:
34-
this.basketDroppedSubscription = this.service.basketDroped$.subscribe(res =>
35-
this.service.getBasket().subscribe(basket => {
36-
this.badge = basket.items.length;
37-
})
38-
);
34+
this.basketDroppedSubscription = this.service.basketDroped$.subscribe(res => this.badge = 0);
3935

4036
// Subscribe to login and logout observable
4137
this.authSubscription = this.authService.authenticationChallenge$.subscribe(res => {

src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/shared/services/security.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class SecurityService {
7070
public Authorize() {
7171
this.ResetAuthorizationData();
7272

73-
let authorizationUrl = 'http://localhost:5105/connect/authorize';
73+
let authorizationUrl = 'http://10.0.75.1:5105/connect/authorize';
7474
let client_id = 'js';
7575
let redirect_uri = 'http://localhost:5104/';
7676
let response_type = 'id_token token';
@@ -142,7 +142,7 @@ export class SecurityService {
142142
}
143143

144144
public Logoff() {
145-
let authorizationUrl = 'http://localhost:5105/connect/endsession';
145+
let authorizationUrl = 'http://10.0.75.1:5105/connect/endsession';
146146
let id_token_hint = this.retrieve('authorizationDataIdToken');
147147
let post_logout_redirect_uri = 'http://localhost:5104/';
148148

@@ -213,7 +213,7 @@ export class SecurityService {
213213

214214
private getUserData = (): Observable<string[]> => {
215215
this.setHeaders();
216-
return this._http.get('http://localhost:5105/connect/userinfo', {
216+
return this._http.get('http://10.0.75.1:5105/connect/userinfo', {
217217
headers: this.headers,
218218
body: ''
219219
}).map(res => res.json());

0 commit comments

Comments
 (0)