Ghost/ghost/admin/app/templates/settings/theme/install.hbs
Kevin Ansfield 5a8753fb8f Added ability to install free themes directly from GitHub (#1837)
refs https://github.com/TryGhost/Ghost/issues/12608
requires https://github.com/TryGhost/Ghost/pull/12635

- adds `/settings/themes/install` route with `source` and `ref` query params that match the API. Shows a confirmation modal when accessed asking to confirm installation and activation
  - does not allow Casper to be installed
  - warns if installing the theme will overwrite an existing one
  - follows similar process to zip uploads for error handling
- adds install/preview links for Massively in the free themes showcase

Co-authored-by: Sanne de Vries <sannedv@protonmail.com>
2021-02-12 09:19:25 +00:00

10 lines
197 B
Handlebars

<GhFullscreenModal
@modal="install-theme"
@model={{hash
source=this.source
ref=this.ref
themes=@model
}}
@close={{this.close}}
@modifier="action wide"
/>