Ensure that image is cropped when aspectRatio is set
This commit is contained in:
parent
45b6747059
commit
850069decb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue