diff --git a/app/components/modals/modal-base.js b/app/components/modals/modal-base.js index d4bc44a492c..c7f50468e30 100644 --- a/app/components/modals/modal-base.js +++ b/app/components/modals/modal-base.js @@ -7,12 +7,18 @@ import { isTesting } from 'open-event-frontend/utils/testing'; export default UiModal.extend({ tagName : 'div', - classNameBindings : ['isFullScreen:fullscreen', 'isSmall:small', 'isLarge:large'], + classNameBindings : ['isFullScreen:fullscreen', 'isSmall:small', 'isLarge:large', 'noCropper'], - openObserver: observer('isOpen', function() { + openObserver: observer('isOpen', 'noCroppper', function() { const $element = $(this.element); if (this.isOpen) { - $element.modal('show'); + if (this.noCropper) { + $element.modal({ + centered: false + }).modal('show'); + } else { + $element.modal('show'); + } } else { $element.modal('hide'); } diff --git a/app/components/modals/session-notify-modal.hbs b/app/components/modals/session-notify-modal.hbs index 283ec4c9d18..3ac4323b419 100644 --- a/app/components/modals/session-notify-modal.hbs +++ b/app/components/modals/session-notify-modal.hbs @@ -21,7 +21,7 @@