[ci:force] auto update node version when media management actions are triggered (#6992)

This commit is contained in:
Eugenio Romano
2021-05-08 22:29:51 +01:00
committed by GitHub
parent e86d48b484
commit 71cad4c287
8 changed files with 48 additions and 18 deletions

View File

@@ -89,7 +89,6 @@ export class ImgViewerComponent implements AfterViewInit, OnChanges {
dragMode: 'move',
background: false,
scalable: true,
modal: false,
zoomOnWheel: false,
toggleDragModeOnDblclick: false,
viewMode: 1,
@@ -185,8 +184,10 @@ export class ImgViewerComponent implements AfterViewInit, OnChanges {
save() {
this.isEditing = false;
this.cropper.setDragMode('move');
this.cropper.getCroppedCanvas().toBlob((blob) => {
this.submit.emit(blob);
this.cropper.replace(this.cropper.getCroppedCanvas().toDataURL());
this.cropper.clear();
});
}