ngx-wapp-components 3.2.27-alpha.2 → 3.2.27-alpha.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.
@@ -12647,10 +12647,12 @@ class WMaterialServiceViewComponent {
12647
12647
  this.matIconRegistry.addSvgIconLiteral("participate-again", this.domSanitizer.bypassSecurityTrustHtml(PARTICIPATE_AGAIN));
12648
12648
  }
12649
12649
  ngOnInit() {
12650
+ this.getImage();
12650
12651
  }
12651
12652
  ngOnChanges(changes) {
12652
12653
  if (changes['defaultImage'] && changes['defaultImage'].currentValue) {
12653
12654
  this.defaultImage = changes['defaultImage'].currentValue;
12655
+ this.getImage();
12654
12656
  this.isNoImage = false;
12655
12657
  if (this.isDevModeActive == true) {
12656
12658
  if (this.defaultImage) {
@@ -12745,13 +12747,7 @@ class WMaterialServiceViewComponent {
12745
12747
  }
12746
12748
  }
12747
12749
  getWappingServiceImages() {
12748
- this.wappingServiceImages = this.wappingService.wappingServiceImages;
12749
- if (this.wappingServiceImages.length == 0) {
12750
- let wappingServiceImage = {
12751
- path: this.wappingService.imageUrl,
12752
- };
12753
- this.wappingServiceImages.unshift(wappingServiceImage);
12754
- }
12750
+ this.getImage();
12755
12751
  }
12756
12752
  selectWappingService() {
12757
12753
  this.disabledToggle = true;
@@ -12792,24 +12788,36 @@ class WMaterialServiceViewComponent {
12792
12788
  if (this.isDevModeActive == true) {
12793
12789
  if (this.defaultImage) {
12794
12790
  if (this.isWFileImage(this.defaultImage)) {
12795
- return [{ path: this.defaultImage.fileBase64 }];
12791
+ this.wappingServiceImages = [{ path: this.defaultImage.fileBase64 }];
12796
12792
  }
12797
12793
  else {
12798
- return [{ path: this.defaultImage }];
12794
+ this.wappingServiceImages = [{ path: this.defaultImage }];
12799
12795
  }
12800
12796
  }
12801
12797
  else {
12802
12798
  this.isNoImage = true;
12803
- return [{ path: './assets/wappIcons/image.svg' }];
12799
+ this.wappingServiceImages = [{ path: './assets/wappIcons/image.svg' }];
12804
12800
  }
12805
12801
  }
12806
12802
  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' }];
12803
+ if (this.wappingService) {
12804
+ if (this.wappingService.wappingServiceImages.length > 0) {
12805
+ this.wappingServiceImages = this.wappingService.wappingServiceImages;
12806
+ }
12807
+ else if (this.wappingService.wappingServiceImages.length == 0 && this.wappingService.imageUrl) {
12808
+ this.wappingServiceImages = [];
12809
+ let wappingServiceImage = {
12810
+ path: this.wappingService.imageUrl,
12811
+ };
12812
+ this.wappingServiceImages.unshift(wappingServiceImage);
12813
+ }
12814
+ else if (this.defaultImage) {
12815
+ this.wappingServiceImages = [{ path: this.defaultImage }];
12816
+ }
12817
+ else {
12818
+ this.isNoImage = true;
12819
+ this.wappingServiceImages = [{ path: './assets/wappIcons/image.svg' }];
12820
+ }
12813
12821
  }
12814
12822
  }
12815
12823
  }