diff --git a/ghost/admin/app/components/modals/theme-warnings.js b/ghost/admin/app/components/modals/theme-warnings.js index 9876b6fd78..9ab6b60b67 100644 --- a/ghost/admin/app/components/modals/theme-warnings.js +++ b/ghost/admin/app/components/modals/theme-warnings.js @@ -7,6 +7,7 @@ export default ModalComponent.extend({ warnings: reads('model.warnings'), errors: reads('model.errors'), fatalErrors: reads('model.fatalErrors'), + canActivate: reads('model.canActivate'), 'data-test-theme-warnings-modal': true }); diff --git a/ghost/admin/app/templates/components/modals/theme-warnings.hbs b/ghost/admin/app/templates/components/modals/theme-warnings.hbs index 1a1c9b1ad3..7d0a41db68 100644 --- a/ghost/admin/app/templates/components/modals/theme-warnings.hbs +++ b/ghost/admin/app/templates/components/modals/theme-warnings.hbs @@ -1,5 +1,11 @@ {{inline-svg "close"}} diff --git a/ghost/admin/app/templates/components/modals/upload-theme.hbs b/ghost/admin/app/templates/components/modals/upload-theme.hbs index 34f566adad..4c93e0129e 100644 --- a/ghost/admin/app/templates/components/modals/upload-theme.hbs +++ b/ghost/admin/app/templates/components/modals/upload-theme.hbs @@ -2,11 +2,11 @@

{{#if theme}} {{#if hasWarningsOrErrors}} - Upload successful with warnings/errors! + Upload successful with {{#if validationErrors}}errors{{else}}warnings{{/if}} {{else}} Upload successful! {{/if}} - {{else if validationErrors}} + {{else if (or validationErrors fatalValidationErrors)}} Invalid theme {{else}} Upload a theme @@ -21,8 +21,8 @@