fabrikantencore 2.2.1 → 2.2.2
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.
- package/esm2020/src/app/modules/fabrikantencore/components/fab-product-tile/fab-product-tile.component.mjs +10 -5
- package/esm2020/src/app/modules/fabrikantencore/swagger/SwaggerClient.mjs +3 -1
- package/fesm2015/fabrikantencore.mjs +11 -4
- package/fesm2015/fabrikantencore.mjs.map +1 -1
- package/fesm2020/fabrikantencore.mjs +11 -4
- package/fesm2020/fabrikantencore.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/modules/fabrikantencore/swagger/SwaggerClient.d.ts +2 -0
|
@@ -5543,6 +5543,7 @@ class FabrikantenProductViewModel {
|
|
|
5543
5543
|
if (_data) {
|
|
5544
5544
|
this.id = _data["id"];
|
|
5545
5545
|
this.name = _data["name"];
|
|
5546
|
+
this.imagePath = _data["imagePath"];
|
|
5546
5547
|
this.urlName = _data["urlName"];
|
|
5547
5548
|
this.textureBaseViewModel = _data["textureBaseViewModel"] ? FabrikantenTextureBaseViewModel.fromJS(_data["textureBaseViewModel"]) : undefined;
|
|
5548
5549
|
if (Array.isArray(_data["fabrikantenBCBProductViewModels"])) {
|
|
@@ -5562,6 +5563,7 @@ class FabrikantenProductViewModel {
|
|
|
5562
5563
|
data = typeof data === 'object' ? data : {};
|
|
5563
5564
|
data["id"] = this.id;
|
|
5564
5565
|
data["name"] = this.name;
|
|
5566
|
+
data["imagePath"] = this.imagePath;
|
|
5565
5567
|
data["urlName"] = this.urlName;
|
|
5566
5568
|
data["textureBaseViewModel"] = this.textureBaseViewModel ? this.textureBaseViewModel.toJSON() : undefined;
|
|
5567
5569
|
if (Array.isArray(this.fabrikantenBCBProductViewModels)) {
|
|
@@ -14520,11 +14522,16 @@ class FabProductTileComponent {
|
|
|
14520
14522
|
this.FabrikantenService.SelectProduct(this.product, this.ChangeDetectorRef);
|
|
14521
14523
|
}
|
|
14522
14524
|
GetPhoto() {
|
|
14523
|
-
|
|
14524
|
-
|
|
14525
|
-
|
|
14525
|
+
if (this.product.imagePath != null && this.product.imagePath != "") {
|
|
14526
|
+
return this.product.imagePath;
|
|
14527
|
+
}
|
|
14528
|
+
else {
|
|
14529
|
+
var array = this.PhotoService.GetPhotoArrayProduct(this.product);
|
|
14530
|
+
if (array.length > 0) {
|
|
14531
|
+
return this.FabrikantenService.FabrikantenViewModel?.bcbWebserviceURLBase + array[0].url;
|
|
14532
|
+
}
|
|
14533
|
+
return "";
|
|
14526
14534
|
}
|
|
14527
|
-
return "";
|
|
14528
14535
|
}
|
|
14529
14536
|
getSafeUrl() {
|
|
14530
14537
|
return this.sanitization.bypassSecurityTrustStyle('url(\'' + this.GetPhoto() + '\')');
|