mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +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 |
||
---|---|---|
.. | ||
mixins | ||
base.js | ||
custom-view.js | ||
integration.js | ||
invite-user.js | ||
label.js | ||
member.js | ||
nav-item.js | ||
new-user.js | ||
post.js | ||
product.js | ||
reset.js | ||
setting.js | ||
setup.js | ||
signin.js | ||
signup.js | ||
slack-integration.js | ||
snippet.js | ||
subscriber.js | ||
tag-settings.js | ||
user.js | ||
webhook.js |