Revert "Return modal reference for client side handling."
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This reverts commit 8ad9d56b07.
This commit is contained in:
Peter Bastiani 2021-03-02 15:13:42 +01:00
parent 8ad9d56b07
commit 4d62184e5b

View File

@ -1,6 +1,6 @@
import { Component, OnInit,ViewChild,ElementRef,EventEmitter, Output } from '@angular/core'; import { Component, OnInit,ViewChild,ElementRef,EventEmitter, Output } from '@angular/core';
import { HttpClient, HttpParams,HttpHeaders } from "@angular/common/http"; import { HttpClient, HttpParams,HttpHeaders } from "@angular/common/http";
import {NgbModal, NgbModalRef } from "@ng-bootstrap/ng-bootstrap" import {NgbModal} from "@ng-bootstrap/ng-bootstrap"
import { ImageCroppedEvent,LoadedImage } from 'ngx-image-cropper'; import { ImageCroppedEvent,LoadedImage } from 'ngx-image-cropper';
import {ImageService } from '../../services/image.service'; import {ImageService } from '../../services/image.service';
@ -30,7 +30,7 @@ export class EditImageModalComponent implements OnInit {
ngOnInit(): void { ngOnInit(): void {
} }
open(endpoint:string,aspectRatio:number,roundImage?:boolean,maxWidth?:number,saveImage?:boolean, imageType?:string): NgbModalRef { open(endpoint:string,aspectRatio:number,roundImage?:boolean,maxWidth?:number,saveImage?:boolean, imageType?:string) {
this.endpointUrl = endpoint; this.endpointUrl = endpoint;
this.imageUrl = endpoint; this.imageUrl = endpoint;
this.aspectRatio= aspectRatio; this.aspectRatio= aspectRatio;
@ -38,7 +38,7 @@ export class EditImageModalComponent implements OnInit {
this.maxWidth = maxWidth === undefined?this.maxWidth:maxWidth; this.maxWidth = maxWidth === undefined?this.maxWidth:maxWidth;
this.imageType = imageType === undefined?this.imageType:imageType.substr(6); this.imageType = imageType === undefined?this.imageType:imageType.substr(6);
this.saveImage = saveImage === undefined?this.saveImage:saveImage; this.saveImage = saveImage === undefined?this.saveImage:saveImage;
return this.modalService.open(this.modal,{ size: 'lg' }); this.modalService.open(this.modal,{ size: 'lg' });
} }
fileChangeEvent(event: any): void { fileChangeEvent(event: any): void {