ngx-wapp-components 3.2.27-alpha.2 → 3.2.27-alpha.3

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.
@@ -12792,24 +12792,36 @@ class WMaterialServiceViewComponent {
12792
12792
  if (this.isDevModeActive == true) {
12793
12793
  if (this.defaultImage) {
12794
12794
  if (this.isWFileImage(this.defaultImage)) {
12795
- return [{ path: this.defaultImage.fileBase64 }];
12795
+ this.wappingServiceImages = [{ path: this.defaultImage.fileBase64 }];
12796
12796
  }
12797
12797
  else {
12798
- return [{ path: this.defaultImage }];
12798
+ this.wappingServiceImages = [{ path: this.defaultImage }];
12799
12799
  }
12800
12800
  }
12801
12801
  else {
12802
12802
  this.isNoImage = true;
12803
- return [{ path: './assets/wappIcons/image.svg' }];
12803
+ this.wappingServiceImages = [{ path: './assets/wappIcons/image.svg' }];
12804
12804
  }
12805
12805
  }
12806
12806
  else {
12807
- if (this.wappingServiceImages.length > 0) {
12808
- return this.wappingServiceImages;
12809
- }
12810
- else {
12811
- this.isNoImage = true;
12812
- return [{ path: './assets/wappIcons/image.svg' }];
12807
+ if (this.wappingService) {
12808
+ if (this.wappingService.wappingServiceImages.length > 0) {
12809
+ this.wappingServiceImages = this.wappingService.wappingServiceImages;
12810
+ }
12811
+ else if (this.wappingService.wappingServiceImages.length == 0 && this.wappingService.imageUrl) {
12812
+ this.wappingServiceImages = [];
12813
+ let wappingServiceImage = {
12814
+ path: this.wappingService.imageUrl,
12815
+ };
12816
+ this.wappingServiceImages.unshift(wappingServiceImage);
12817
+ }
12818
+ else if (this.defaultImage) {
12819
+ this.wappingServiceImages = [{ path: this.defaultImage }];
12820
+ }
12821
+ else {
12822
+ this.isNoImage = true;
12823
+ this.wappingServiceImages = [{ path: './assets/wappIcons/image.svg' }];
12824
+ }
12813
12825
  }
12814
12826
  }
12815
12827
  }