mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
3e4b9a6865
https://github.com/TryGhost/Team/issues/581 The API now supports `posts.visibility` being an NQL string as well as the special-case `'members'` and `'paid'` values so the post settings menu visibility select needs to be updated to reflect that. - swapped visibility dropdown for two radio buttons, "Public" and "Members-only" which uses the `<GhMembersSegmentSelect>` component - updated post model to use a `visibility-string` transform - converts `members` and `paid` to/from the NQL equivalent for correct display in the segment select - updated post model with two additional properties `isPublic` and `visibilitySegment` - `isPublic` helps with the radio button display - `visibilitySegment` allows fallback to the default content visibility setting when set to public - added validation for `post.visibility` so we can show an error and skip saving when members-only is selected and the segment select is cleared - deleted the now-unused `<GhPsmVisibilityInput>` component |
||
---|---|---|
.. | ||
action.js | ||
api-key.js | ||
base.js | ||
email-recipient.js | ||
email.js | ||
integration.js | ||
invite.js | ||
label.js | ||
member-product.js | ||
member-subscription.js | ||
member.js | ||
navigation-item.js | ||
notification.js | ||
page.js | ||
post.js | ||
product.js | ||
role.js | ||
setting.js | ||
slack-integration.js | ||
snippet.js | ||
stripe-price.js | ||
tag.js | ||
theme.js | ||
user.js | ||
webhook.js |