ngx-wapp-components 3.3.1-alpha.1 → 3.3.1-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.
|
@@ -7382,10 +7382,12 @@ class WImageFileUploaderComponent {
|
|
|
7382
7382
|
else {
|
|
7383
7383
|
this.cropperImages.push(imageCropped);
|
|
7384
7384
|
this.cropperImages = (this.activePositionProperty && this.activeImageUpload == false) ? this.addPositionProperty(this.cropperImages) : this.cropperImages;
|
|
7385
|
-
if (this.activeImageUpload
|
|
7386
|
-
this.imagesAlreadyUploaded
|
|
7387
|
-
|
|
7388
|
-
|
|
7385
|
+
if (this.activeImageUpload === false) {
|
|
7386
|
+
this.imagesAlreadyUploaded = [
|
|
7387
|
+
...this.imagesAlreadyUploaded,
|
|
7388
|
+
imageCropped
|
|
7389
|
+
];
|
|
7390
|
+
if (this.imagesAlreadyUploaded.length === 1) {
|
|
7389
7391
|
this.activeIndexGallery = 0;
|
|
7390
7392
|
}
|
|
7391
7393
|
this.onReturnImagesB64.emit(this.getArraysToCreateAndToUpdate(this.cropperImages));
|