Upgrade/angular 14 (#1853)
* Fix Loan product Payment Allocation * Upgrade to Angular 14 --------- Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
2dab3b70ca
commit
80936a3ea9
@@ -14,7 +14,7 @@ import { ApiPrefixInterceptor } from './api-prefix.interceptor';
|
||||
* HttpClient is declared in a re-exported module, so we have to extend the original module to make it work properly.
|
||||
* (see https://github.com/Microsoft/TypeScript/issues/13897)
|
||||
*/
|
||||
declare module '@angular/common/http/http' {
|
||||
declare module '@angular/common/http' {
|
||||
|
||||
/**
|
||||
* Augment HttpClient with the added configuration methods from HttpService, to allow in-place replacement of
|
||||
|
||||
@@ -4,7 +4,7 @@ import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse} from
|
||||
|
||||
/** rxjs Imports */
|
||||
import { Observable } from 'rxjs';
|
||||
import { tap, catchError } from 'rxjs/operators';
|
||||
import { finalize } from 'rxjs/operators';
|
||||
|
||||
/** Custom Services */
|
||||
import { ProgressBarService } from './progress-bar.service';
|
||||
@@ -28,17 +28,9 @@ export class ProgressInterceptor implements HttpInterceptor {
|
||||
this.progressBarService.increase();
|
||||
return next.handle(request)
|
||||
.pipe(
|
||||
tap(event => {
|
||||
if (event instanceof HttpResponse) {
|
||||
this.progressBarService.decrease();
|
||||
}
|
||||
})
|
||||
)
|
||||
.pipe(
|
||||
catchError(error => {
|
||||
this.progressBarService.decrease();
|
||||
throw error;
|
||||
})
|
||||
finalize(
|
||||
() => { this.progressBarService.decrease(); }
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,10 +54,6 @@
|
||||
<mifosx-language-selector class="ml-1 language" fxHide.lt-md></mifosx-language-selector>
|
||||
</div>
|
||||
|
||||
<div #themePicker>
|
||||
<mifosx-theme-picker fxHide.lt-md></mifosx-theme-picker>
|
||||
</div>
|
||||
|
||||
<div #notifications>
|
||||
<mifosx-notifications-tray fxHide.lt-md></mifosx-notifications-tray>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user