@brggroup/share-lib 0.0.13 → 0.0.14

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.
@@ -160,7 +160,7 @@ class HTTPService {
160
160
  const options = {
161
161
  headers: new HttpHeaders({
162
162
  'Content-Type': 'application/json; charset=utf-8',
163
- 'no-loading-mark': noLoadingMark ? '1' : '0',
163
+ 'No-Loading-Mark': noLoadingMark ? '1' : '0',
164
164
  }),
165
165
  };
166
166
  return firstValueFrom(this.httpClient.get(url, options));
@@ -169,7 +169,7 @@ class HTTPService {
169
169
  const options = {
170
170
  headers: new HttpHeaders({
171
171
  'Content-Type': 'application/json; charset=utf-8',
172
- 'no-loading-mark': noLoadingMark ? '1' : '0',
172
+ 'No-Loading-Mark': noLoadingMark ? '1' : '0',
173
173
  }),
174
174
  params: params,
175
175
  };
@@ -179,7 +179,7 @@ class HTTPService {
179
179
  const options = {
180
180
  headers: new HttpHeaders({
181
181
  'Content-Type': 'application/json; charset=utf-8',
182
- 'no-loading-mark': noLoadingMark ? '1' : '0',
182
+ 'No-Loading-Mark': noLoadingMark ? '1' : '0',
183
183
  }),
184
184
  };
185
185
  return firstValueFrom(this.httpClient.post(url, null, options));
@@ -188,7 +188,7 @@ class HTTPService {
188
188
  const options = {
189
189
  headers: new HttpHeaders({
190
190
  'Content-Type': 'application/json; charset=utf-8',
191
- 'no-loading-mark': noLoadingMark ? '1' : '0',
191
+ 'No-Loading-Mark': noLoadingMark ? '1' : '0',
192
192
  }),
193
193
  params: params,
194
194
  };
@@ -198,7 +198,7 @@ class HTTPService {
198
198
  const options = {
199
199
  headers: new HttpHeaders({
200
200
  'Content-Type': 'application/json; charset=utf-8',
201
- 'no-loading-mark': noLoadingMark ? '1' : '0',
201
+ 'No-Loading-Mark': noLoadingMark ? '1' : '0',
202
202
  }),
203
203
  };
204
204
  return firstValueFrom(this.httpClient.post(url, body, options));
@@ -207,7 +207,7 @@ class HTTPService {
207
207
  const options = {
208
208
  headers: new HttpHeaders({
209
209
  'Content-Type': 'application/json; charset=utf-8',
210
- 'no-loading-mark': noLoadingMark ? '1' : '0',
210
+ 'No-Loading-Mark': noLoadingMark ? '1' : '0',
211
211
  }),
212
212
  params: params,
213
213
  };
@@ -622,8 +622,8 @@ function authInterceptor(req, next) {
622
622
  const notiService = inject(NotiService);
623
623
  const translate = inject(TranslateService);
624
624
  const authToken = TokenStorage.getToken();
625
- const noLoadingMark = req.headers.has('no-loading-mark');
626
- if (!noLoadingMark) {
625
+ const noLoadingMark = req.headers.get('No-Loading-Mark');
626
+ if (noLoadingMark != '1') {
627
627
  loadingService.loadingUp();
628
628
  }
629
629
  if (!(req.body instanceof FormData)) {
@@ -652,7 +652,7 @@ function authInterceptor(req, next) {
652
652
  }
653
653
  return throwError(() => error);
654
654
  }), finalize(() => {
655
- if (!noLoadingMark) {
655
+ if (noLoadingMark != '1') {
656
656
  loadingService.loadingDown();
657
657
  }
658
658
  }));