File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,20 +41,20 @@ export class SpinnerComponent implements OnDestroy {
4141 constructor ( private http : HttpInterceptorService , private pendingRequestInterceptorService : PendingInterceptorService ) {
4242 this . oldSubscription = this . http
4343 . pendingRequestsStatus
44- . subscribe ( isSpinnerVisible => {
45- if ( isSpinnerVisible ) {
44+ . subscribe ( hasPendingRequests => {
45+ if ( hasPendingRequests ) {
4646 console . log (
4747 'HttpInterceptorService is deprecated and will soon be removed ' +
4848 'in favor of HttpClientModule. Please upgrade !'
4949 ) ;
5050 }
51- this . isSpinnerVisible = isSpinnerVisible ;
51+ this . isSpinnerVisible = hasPendingRequests ;
5252 } ) ;
5353
5454 this . subscription = this . pendingRequestInterceptorService
5555 . pendingRequestsStatus
56- . subscribe ( isSpinnerVisible => {
57- this . isSpinnerVisible = isSpinnerVisible ;
56+ . subscribe ( hasPendingRequests => {
57+ this . isSpinnerVisible = hasPendingRequests ;
5858 } ) ;
5959 }
6060
You can’t perform that action at this time.
0 commit comments