Ghost/ghost/admin/app/validators
Kevin Ansfield 3e4b9a6865 🎨 Updated post settings menu visibility option to support member segments
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
2021-05-10 20:34:23 +01:00
..
mixins Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
base.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
custom-view.js Added default and custom post views (filters) to the admin sidebar (#1474) 2020-01-30 15:35:36 +00:00
integration.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
invite-user.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
label.js Added labels for Members (#1477) 2020-02-14 15:04:01 +05:30
member.js Fixed incorrect validation when member's name is too long 2020-05-11 11:40:38 +01:00
nav-item.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
new-user.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
post.js 🎨 Updated post settings menu visibility option to support member segments 2021-05-10 20:34:23 +01:00
product.js Added error handling for product details page 2021-05-10 19:18:30 +05:30
reset.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
setting.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
setup.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
signin.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
signup.js Update package.json details, rename module to ghost-admin 2016-06-03 16:12:54 +01:00
slack-integration.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
snippet.js Added max length validation to snippet's name field 2020-10-16 19:22:09 +01:00
subscriber.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
tag-settings.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
user.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
webhook.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00