diff --git a/ghost/admin/app/components/modals/upload-image.js b/ghost/admin/app/components/modals/upload-image.js index b396c12207..d3fb2ba0c0 100644 --- a/ghost/admin/app/components/modals/upload-image.js +++ b/ghost/admin/app/components/modals/upload-image.js @@ -10,6 +10,7 @@ export default ModalComponent.extend({ url: '', newUrl: '', + _isUploading: false, config: injectService(), notifications: injectService(), @@ -97,6 +98,10 @@ export default ModalComponent.extend({ confirm() { this.get('uploadImage').perform(); + }, + + isUploading() { + this.toggleProperty('_isUploading'); } } }); diff --git a/ghost/admin/app/templates/components/modals/upload-image.hbs b/ghost/admin/app/templates/components/modals/upload-image.hbs index 876eb5a8be..b753f1514d 100644 --- a/ghost/admin/app/templates/components/modals/upload-image.hbs +++ b/ghost/admin/app/templates/components/modals/upload-image.hbs @@ -12,6 +12,8 @@ image=newUrl saveButton=false update=(action 'fileUploaded') + uploadStarted=(action 'isUploading') + uploadFinished=(action 'isUploading') accept=model.accept extensions=model.extensions uploadUrl=model.uploadUrl @@ -21,5 +23,9 @@