fabrikantencore 2.40.3 → 2.40.4
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.
|
@@ -19457,7 +19457,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
19457
19457
|
class SVGService {
|
|
19458
19458
|
FabrikantenApiClient;
|
|
19459
19459
|
sanitization;
|
|
19460
|
-
|
|
19460
|
+
LoadingSignal = signal(false, ...(ngDevMode ? [{ debugName: "LoadingSignal" }] : /* istanbul ignore next */ []));
|
|
19461
|
+
get Loading() {
|
|
19462
|
+
return this.LoadingSignal();
|
|
19463
|
+
}
|
|
19461
19464
|
FabrikantenSVGViewModel;
|
|
19462
19465
|
SafeURLLoaded = false;
|
|
19463
19466
|
SafeURL;
|
|
@@ -19481,7 +19484,7 @@ class SVGService {
|
|
|
19481
19484
|
}
|
|
19482
19485
|
LoadFabrikantenSVGViewModel(sessionid, ChangeDetectorRef) {
|
|
19483
19486
|
if (!this.Loading) {
|
|
19484
|
-
this.
|
|
19487
|
+
this.LoadingSignal.set(true);
|
|
19485
19488
|
ChangeDetectorRef.detectChanges();
|
|
19486
19489
|
var request = new FabrikantenSVGRequestModel();
|
|
19487
19490
|
request.sessionId = sessionid;
|
|
@@ -19495,7 +19498,7 @@ class SVGService {
|
|
|
19495
19498
|
this.SafeURL = this.sanitization.bypassSecurityTrustResourceUrl(this.FabrikantenSVGViewModel.svg + "");
|
|
19496
19499
|
this.SafeURLLoaded = true;
|
|
19497
19500
|
this.CollectSnedes();
|
|
19498
|
-
this.
|
|
19501
|
+
this.LoadingSignal.set(false);
|
|
19499
19502
|
ChangeDetectorRef.detectChanges();
|
|
19500
19503
|
if (this.FabrikantenService != null) {
|
|
19501
19504
|
if (this.FabrikantenSVGViewModel.checksum != this.FabrikantenService.FabrikantenViewModel.checksum) {
|
|
@@ -19511,7 +19514,7 @@ class SVGService {
|
|
|
19511
19514
|
}
|
|
19512
19515
|
}, (error) => {
|
|
19513
19516
|
alert('An unexpected error occured');
|
|
19514
|
-
this.
|
|
19517
|
+
this.LoadingSignal.set(false);
|
|
19515
19518
|
});
|
|
19516
19519
|
}
|
|
19517
19520
|
else {
|