File tree Expand file tree Collapse file tree
src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules Expand file tree Collapse file tree Original file line number Diff line number Diff 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 => {
Original file line number Diff line number Diff 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 ( ) ) ;
You can’t perform that action at this time.
0 commit comments