Aw4751 eslint fixes
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -16,16 +16,16 @@ export class EditImageModalComponent implements OnInit {
|
||||
|
||||
constructor(private modalService: NgbModal,public imageService:ImageService) { }
|
||||
|
||||
isImageLoaded:boolean = false;
|
||||
isImageLoaded = false;
|
||||
aspectRatio:number = 4/3;
|
||||
imageChangedEvent: any = '';
|
||||
croppedImage: string = '';
|
||||
croppedImage = '';
|
||||
endpointUrl:string = null;
|
||||
imageUrl:string = null;
|
||||
maxWidth:number = 200;
|
||||
roundImage:boolean = false;
|
||||
imageType:string = "jpeg";
|
||||
saveImage:boolean = true;
|
||||
maxWidth = 200;
|
||||
roundImage = false;
|
||||
imageType = "jpeg";
|
||||
saveImage = true;
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
@@ -59,7 +59,7 @@ export class EditImageModalComponent implements OnInit {
|
||||
|
||||
save() {
|
||||
if(this.croppedImage) {
|
||||
var blob = this.imageService.dataUrltoBlob(this.croppedImage);
|
||||
const blob = this.imageService.dataUrltoBlob(this.croppedImage);
|
||||
if(this.saveImage) {
|
||||
this.imageService.putImage(this.endpointUrl,blob).subscribe(() => {
|
||||
this.changed.emit({});
|
||||
|
Reference in New Issue
Block a user