Add no-image placeholder

This commit is contained in:
Willem Dantuma
2021-03-01 17:25:40 +01:00
parent 01488ae2e0
commit 47f3238edd
3 changed files with 17 additions and 3 deletions

View File

@@ -21,8 +21,8 @@ export class EditImageModalComponent implements OnInit {
this.modalService.open(this.modal,{ size: 'lg' });
}
isImageLoaded:boolean = false;
aspectRatio:number = 4/3;
imageChangedEvent: any = '';
croppedImage: any = '';
@@ -33,6 +33,7 @@ export class EditImageModalComponent implements OnInit {
this.croppedImage = event.base64;
}
imageLoaded(image: LoadedImage) {
this.isImageLoaded=true;
}
cropperReady() {
// cropper ready