@brggroup/share-lib 0.0.9 → 0.0.11
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.
|
@@ -622,7 +622,10 @@ function authInterceptor(req, next) {
|
|
|
622
622
|
const notiService = inject(NotiService);
|
|
623
623
|
const translate = inject(TranslateService);
|
|
624
624
|
const authToken = TokenStorage.getToken();
|
|
625
|
-
|
|
625
|
+
const noLoadingMark = req.headers.has('no-loading-mark');
|
|
626
|
+
if (!noLoadingMark) {
|
|
627
|
+
loadingService.loadingUp();
|
|
628
|
+
}
|
|
626
629
|
if (!(req.body instanceof FormData)) {
|
|
627
630
|
const newBody = convertDatesInBody(req.body);
|
|
628
631
|
if (req.body !== newBody) {
|
|
@@ -649,7 +652,9 @@ function authInterceptor(req, next) {
|
|
|
649
652
|
}
|
|
650
653
|
return throwError(() => error);
|
|
651
654
|
}), finalize(() => {
|
|
652
|
-
|
|
655
|
+
if (!noLoadingMark) {
|
|
656
|
+
loadingService.loadingDown();
|
|
657
|
+
}
|
|
653
658
|
}));
|
|
654
659
|
}
|
|
655
660
|
function convertDatesInBody(obj) {
|
|
@@ -825,6 +830,11 @@ class BaseComponent {
|
|
|
825
830
|
}
|
|
826
831
|
});
|
|
827
832
|
}
|
|
833
|
+
untouchControls(formData) {
|
|
834
|
+
formData.markAsPristine();
|
|
835
|
+
formData.markAsUntouched();
|
|
836
|
+
formData.updateValueAndValidity();
|
|
837
|
+
}
|
|
828
838
|
logFormErrors(form, parentKey = '') {
|
|
829
839
|
Object.keys(form.controls).forEach((key) => {
|
|
830
840
|
const control = form.get(key);
|