Ghost/ghost/admin
Kevin Ansfield 89a6bc683b 🐛 Fixed incorrect publish type showing in publish menu after close/re-open
closes https://github.com/TryGhost/Team/issues/1151

The publish-type state was being set directly on the model in the publish menu rather than being internal to the menu until publishing. A previous attempt had been made to fix that but it wasn't complete and resulted in the menu showing that it would "Publish" after setting it and closing/re-opening when in fact it would "Publish and send".

- moved all state for the distribution type and email settings to be stored in the `<PublishMenu>` component rather than split across the the component and model
- when saving a post from the publish menu, we now pass `emailOnly` as an option to the editor's save task the same as `sendEmailWhenPublished` (corresponding to the `email_recipient_filter` query param) so that we're back to one place controlling email behaviour for a post
- when `emailOnly` is passed as an option to the editor save task it will set the property on the model before saving and reset it back if the save fails. That way the email-only flag behaves as close to the "send when published" flag as possible without it also being sent as a query param.
2021-10-15 15:42:32 +01:00
..
.github Fixed notifications for build failures 2021-08-16 15:53:22 +01:00
app 🐛 Fixed incorrect publish type showing in publish menu after close/re-open 2021-10-15 15:42:32 +01:00
config Added Sentry error tracking for unhandled exceptions and API errors 2021-05-26 17:01:32 +01:00
lib Added offer urls to email cta card 2021-10-12 17:03:45 +05:30
mirage Fixed offer tests 2021-10-11 13:52:42 +05:30
public/assets Added all official themes to the new change theme screen 2021-10-13 16:36:26 +01:00
tests Fixed offer tests 2021-10-11 13:52:42 +05:30
.csscomb.json Unsplash integration 2017-08-15 16:01:12 +01:00
.editorconfig deps: ember-cli@2.8.0 2016-10-07 17:32:30 +01:00
.ember-cli Co-located component template files 2020-05-18 13:14:08 +01:00
.eslintignore Bumped ember core dependencies to 3.5.x 2019-03-06 07:39:51 +00:00
.eslintrc.js Update dependency eslint-plugin-ghost to v2.0.0 2020-10-23 09:59:09 +01:00
.gitignore Updated gitignore to exclude IDE files 2021-06-09 15:42:13 +05:30
.watchmanconfig deps: ember-cli@1.13.13 2015-11-30 11:21:39 -06:00
ember-cli-build.js Initial ember-promise-modals implementation 2021-09-13 13:01:12 +01:00
ember-cli-update.json Updated core files to match ember-cli new output 2020-08-03 09:24:58 +01:00
Gruntfile.js Bower => NPM (#972) 2018-03-19 17:56:09 +00:00
LICENSE 2021 2021-01-25 16:51:15 +00:00
package.json Update dependency @tryghost/members-csv to v1.1.7 (#2100) 2021-10-13 09:12:34 +01:00
README.md Updated badge URL in README 2021-02-03 09:21:06 +00:00
renovate.json Removed ember-testing group from Renovate config 2021-05-12 15:52:17 +01:00
SECURITY.md Updated links to ghost.org sites 2021-01-19 13:18:59 +13:00
testem.js Increased testem's browser_start_timeout to 120s 2020-07-20 12:20:26 +01:00
yarn.lock Update dependency @tryghost/members-csv to v1.1.7 (#2100) 2021-10-13 09:12:34 +01:00

Ghost-Admin

This is the home of Ember.js based admin client that ships with Ghost.

Do you want to set up a Ghost blog? Check the getting started guide

Do you want to modify or contribute to Ghost-Admin? Please read how to install from source and swing by our forum if you need any help 😄

Have a bug or issue?

Bugs and issues (even if they only affect the admin client) should be opened on the core Ghost repository.

Copyright & License

Copyright (c) 2013-2021 Ghost Foundation - Released under the MIT license. Ghost and the Ghost Logo are trademarks of Ghost Foundation Ltd. Please see our trademark policy for info on acceptable usage.