Ghost/ghost/admin/app/templates
Kevin Ansfield 24507ac5cc Added preview page selector to design settings screen
closes https://github.com/TryGhost/Team/issues/1103

Custom post settings can be grouped by homepage or post, when set to `'post'` it makes sense to be able to preview a post page rather than the homepage.

- added preview type selection to `themeManagement` service
  - `.availablePreviewTypes` is useful for populating selects or other page selection elements
  - `.previewType` is set to the currently selected preview type name
  - `.setPreviewType()` is for setting the preview type and re-generating the preview html if necessary
- updated `themeManagement.updatePreviewHtmlTask` to fetch the latest published post if we don't already have a published post reference in the store, that post's `url` is then used when fetching the preview html if the preview type is set to `'post'`
- added a select element to the design index header that uses the themeManagement properties/actions to list types and update the preview on change
- updated the design nav menu to switch preview types when different sections are opened so the preview automatically switches to the post preview when making changes to the "post" custom theme settings group
2021-10-13 16:07:01 +01:00
..
editor Migrated to <AngleBracketSyntax /> (#1460) 2020-01-16 15:14:03 +00:00
integration/webhooks Updated navigation (#1832) 2021-02-02 16:08:06 +00:00
integrations Fixed Zapier details responsive issues 2021-09-09 10:56:56 +02:00
members Added new members CSV importer (#1797) 2020-12-10 01:02:31 +05:30
settings Added preview page selector to design settings screen 2021-10-13 16:07:01 +01:00
setup Minor icon/copy fix for site setup flow 2021-03-05 15:55:56 +01:00
staff Copy refinements 2021-09-01 13:02:00 +02:00
-contributors.hbs 🐛 fix broken assets (#616) 2017-04-05 14:08:15 +01:00
application-error.hbs Migrated to <AngleBracketSyntax /> (#1460) 2020-01-16 15:14:03 +00:00
application.hbs Initial ember-promise-modals implementation 2021-09-13 13:01:12 +01:00
dashboard.hbs Updated About/What's new? page (#1872) 2021-09-08 14:00:24 +02:00
designsandbox.hbs Added dashboard UI skeleton 2021-02-16 18:12:24 +01:00
editor.hbs Fixed editor header display on mobile 2021-09-20 17:36:43 +02:00
error.hbs Fixed 404 code alignment 2021-07-08 15:42:46 +02:00
integration-loading.hbs Updated navigation (#1832) 2021-02-02 16:08:06 +00:00
integration.hbs Updated webhook button color 2021-07-05 12:28:29 +01:00
integrations.hbs Swapped to American English spellings 2021-06-09 16:32:14 +01:00
launch.hbs Updated launch wizard to create custom price 2021-05-04 21:42:48 +05:30
member.hbs Cleaned duplicate member settings form component 2021-09-13 16:40:45 +05:30
members.hbs Added Members Filtering feature 2021-10-01 14:16:28 +02:00
offer.hbs Fixed offer percentage amount not getting set 2021-10-08 19:15:56 +05:30
offers.hbs Refined fixed discount type amount UI 2021-10-08 18:50:18 +05:30
pages-loading.hbs Fixed header content jump when navigating between custom views 2021-03-09 11:38:48 +00:00
pages.hbs Responsive UI fixes 2021-02-12 14:29:49 +01:00
posts-loading.hbs Fixed header content jump when navigating between custom views 2021-03-09 11:38:48 +00:00
posts.hbs Responsive UI fixes 2021-02-12 14:29:49 +01:00
reset.hbs Updated password reset button style 2021-03-03 17:16:44 +01:00
settings.hbs Added base files for Offers structure 2021-10-04 13:01:12 +02:00
setup.hbs Migrated to <AngleBracketSyntax /> (#1460) 2020-01-16 15:14:03 +00:00
signin.hbs Updated OAuth signin link to relative for subdirectory support 2021-09-17 16:34:12 +01:00
signup.hbs 🐛 Fixed button style for staff creation 2020-01-21 12:14:35 +01:00
site.hbs Added reset-to-homepage behaviour when clicking "view site" link 2019-03-21 17:55:58 +00:00
tag.hbs Updated custom integration UI 2021-02-08 21:16:41 +01:00
tags-loading.hbs Fixed tags loading screen UI bug 2021-03-05 10:19:37 +01:00
tags.hbs Fixed Tags empty screen button bug 2021-10-07 12:25:37 +02:00
whatsnew.hbs Updated About/What's new? page (#1872) 2021-09-08 14:00:24 +02:00