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.
@@ -5563,6 +5563,7 @@ class FabrikantenProductViewModel {
5563
5563
  if (_data) {
5564
5564
  this.id = _data["id"];
5565
5565
  this.name = _data["name"];
5566
+ this.imagePath = _data["imagePath"];
5566
5567
  this.urlName = _data["urlName"];
5567
5568
  this.textureBaseViewModel = _data["textureBaseViewModel"] ? FabrikantenTextureBaseViewModel.fromJS(_data["textureBaseViewModel"]) : undefined;
5568
5569
  if (Array.isArray(_data["fabrikantenBCBProductViewModels"])) {
@@ -5582,6 +5583,7 @@ class FabrikantenProductViewModel {
5582
5583
  data = typeof data === 'object' ? data : {};
5583
5584
  data["id"] = this.id;
5584
5585
  data["name"] = this.name;
5586
+ data["imagePath"] = this.imagePath;
5585
5587
  data["urlName"] = this.urlName;
5586
5588
  data["textureBaseViewModel"] = this.textureBaseViewModel ? this.textureBaseViewModel.toJSON() : undefined;
5587
5589
  if (Array.isArray(this.fabrikantenBCBProductViewModels)) {
@@ -14612,11 +14614,16 @@ class FabProductTileComponent {
14612
14614
  }
14613
14615
  GetPhoto() {
14614
14616
  var _a;
14615
- var array = this.PhotoService.GetPhotoArrayProduct(this.product);
14616
- if (array.length > 0) {
14617
- return ((_a = this.FabrikantenService.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.bcbWebserviceURLBase) + array[0].url;
14617
+ if (this.product.imagePath != null && this.product.imagePath != "") {
14618
+ return this.product.imagePath;
14619
+ }
14620
+ else {
14621
+ var array = this.PhotoService.GetPhotoArrayProduct(this.product);
14622
+ if (array.length > 0) {
14623
+ return ((_a = this.FabrikantenService.FabrikantenViewModel) === null || _a === void 0 ? void 0 : _a.bcbWebserviceURLBase) + array[0].url;
14624
+ }
14625
+ return "";
14618
14626
  }
14619
- return "";
14620
14627
  }
14621
14628
  getSafeUrl() {
14622
14629
  return this.sanitization.bypassSecurityTrustStyle('url(\'' + this.GetPhoto() + '\')');