From ff249689d596b04119c1356b584f39509708dcb3 Mon Sep 17 00:00:00 2001 From: Aileen Nowak Date: Mon, 19 Jun 2017 17:55:28 +0700 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20=20Trigger=20image=20uploa?= =?UTF-8?q?d=20when=20clicking=20on=20image=20(#735)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ⬆️ Trigger image upload when clicking on image closes TryGhost/Ghost#8544 When clicking on an already uploaded icon, logo or cover in Settings -> General we trigger now the file upload to be able to replace it. * use lowercase event names * toggle progress bar when replacing image --- .../admin/app/templates/settings/general.hbs | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ghost/admin/app/templates/settings/general.hbs b/ghost/admin/app/templates/settings/general.hbs index f7cda8352a..9fc130b14b 100644 --- a/ghost/admin/app/templates/settings/general.hbs +++ b/ghost/admin/app/templates/settings/general.hbs @@ -70,15 +70,15 @@ {{/if}}
- {{#if model.icon}} - icon + {{#if uploader.isUploading}} + {{uploader.progressBar}} + {{else if model.icon}} + icon - {{else if uploader.isUploading}} - {{uploader.progressBar}} {{else}} - {{/if}} @@ -105,15 +105,15 @@ {{/if}}
- {{#if model.logo}} - + {{#if uploader.isUploading}} + {{uploader.progressBar}} + {{else if model.logo}} + - {{else if uploader.isUploading}} - {{uploader.progressBar}} {{else}} - {{/if}} @@ -140,15 +140,15 @@ {{/if}}
- {{#if model.coverImage}} - cover photo + {{#if uploader.isUploading}} + {{uploader.progressBar}} + {{else if model.coverImage}} + cover photo - {{else if uploader.isUploading}} - {{uploader.progressBar}} {{else}} - {{/if}}