Ensure that image is cropped when aspectRatio is set

This commit is contained in:
philipp lang 2020-10-27 22:41:51 +01:00
parent 45b6747059
commit 850069decb
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@ export default {
$.oc.flashMsg({ text: 'Bitte einen Titel angeben.', class: 'error' });
return;
}
if (_cls.aspectRatio && !_cls.popup.values.crop) {
$.oc.flashMsg({ text: 'Bitte das Bild beschneiden', class: 'error' });
return;
}
$popup.modal('hide');
resolve(_cls.popup.values);