ng-ipa-library 1.2.3 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -545,20 +545,33 @@ class LoaderComponent {
545
545
  constructor(loaderService, cdr) {
546
546
  this.loaderService = loaderService;
547
547
  this.cdr = cdr;
548
+ this.loading = true;
549
+ this.isLocal = false;
548
550
  }
549
551
  ngAfterViewInit() {
550
552
  this.loaderService.isLoading.subscribe((v) => {
551
553
  this.loading = v;
554
+ const loader = document.getElementById('cover-spin');
555
+ if (loader) {
556
+ if (this.loading) {
557
+ loader.style.display = 'flex';
558
+ }
559
+ else {
560
+ loader.style.display = 'none';
561
+ }
562
+ }
552
563
  this.cdr.detectChanges();
553
564
  });
554
565
  }
555
566
  }
556
567
  LoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: LoaderComponent, deps: [{ token: LoaderService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
557
- LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: LoaderComponent, selector: "ipa-loader", ngImport: i0, template: "<div id=\"cover-spin\" *ngIf=\"loading\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n", styles: ["#cover-spin{display:flex}\n"], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
568
+ LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: LoaderComponent, selector: "ipa-loader", inputs: { isLocal: "isLocal" }, ngImport: i0, template: "<div id=\"cover-spin\" *ngIf=\"loading && isLocal\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n", styles: ["#cover-spin{display:flex}\n"], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
558
569
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: LoaderComponent, decorators: [{
559
570
  type: Component,
560
- args: [{ selector: 'ipa-loader', template: "<div id=\"cover-spin\" *ngIf=\"loading\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n", styles: ["#cover-spin{display:flex}\n"] }]
561
- }], ctorParameters: function () { return [{ type: LoaderService }, { type: i0.ChangeDetectorRef }]; } });
571
+ args: [{ selector: 'ipa-loader', template: "<div id=\"cover-spin\" *ngIf=\"loading && isLocal\">\r\n <div class=\"spinner\"></div>\r\n</div>\r\n", styles: ["#cover-spin{display:flex}\n"] }]
572
+ }], ctorParameters: function () { return [{ type: LoaderService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { isLocal: [{
573
+ type: Input
574
+ }] } });
562
575
 
563
576
  class FileUploadComponent {
564
577
  constructor(
@@ -1376,7 +1389,7 @@ class TokenInterceptor {
1376
1389
  if (this.authService.currentUserUrl) {
1377
1390
  if (this.refresh) {
1378
1391
  this.http
1379
- .get(this.authService.currentUserUrl + `/api/users?refresh`, {
1392
+ .get(this.authService.currentUserUrl + `users?refresh`, {
1380
1393
  headers: { Authorization: `Bearer ${token}` },
1381
1394
  })
1382
1395
  .subscribe((user) => {