Save image
This commit is contained in:
@@ -16,18 +16,19 @@
|
||||
[maintainAspectRatio]="true"
|
||||
format="jpeg"
|
||||
[aspectRatio]="aspectRatio"
|
||||
[autoCrop]="false"
|
||||
[autoCrop]="true"
|
||||
(imageCropped)="imageCropped($event)"
|
||||
(imageLoaded)="imageLoaded($event)"
|
||||
(cropperReady)="cropperReady()"
|
||||
(loadImageFailed)="loadImageFailed()"
|
||||
[imageURL]="imageUrl"
|
||||
></image-cropper>
|
||||
</div>
|
||||
<input #fileInput type="file" (change)="fileChangeEvent($event)" style="display:none" accept="image/*"/>
|
||||
<span class="btn btn-primary" (click)="fileInput.click()" i18n>Select image</span>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary" i18n [disabled]="!isImageLoaded">Apply</button>
|
||||
<button type="submit" class="btn btn-primary" i18n [disabled]="!isImageLoaded" (click)="save()">Apply</button>
|
||||
<button type="button" autofocus class="btn btn-secondary" (click)="modal.close('Save click')" i18n="@@buttonCancel">Cancel</button>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
Reference in New Issue
Block a user