Ghost/ghost/admin/app/models
Kevin Ansfield b5987a6979 🐛 Fix #tags added via PSM having "public" visibility (#841)
refs TryGhost/Ghost#8943
- Tag model has an observer watching the `isNew` and `name` properties so that it can set the `visibility: "internal"` property for new tags based on their name starting with a `#`
- PSM creates tags using `store.createRecord('tag', {name: tagName})` which means that the tag is instantiated with the `isNew` and `name` properties already set (unlike the tags screen where an empty tag is first created before the name is set via UI) - because the properties are there before at instantiation the observer never fires because it's only watching for changes
- adds the `.on('init')` modifier to the `setVisibilityOnNew` observer so that it's run for the watched properties during instantiation as well as on change
2017-08-29 10:19:47 +07:00
..
invite.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
navigation-item.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
notification.js 🐛 fix duplicate server alerts + default alert bg color (#242) 2016-09-01 11:01:54 -05:00
post.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
role.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
setting.js Unsplash integration 2017-08-15 16:01:12 +01:00
slack-integration.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
subscriber.js 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
tag.js 🐛 Fix #tags added via PSM having "public" visibility (#841) 2017-08-29 10:19:47 +07:00
theme.js 🎨 improve theme results (#726) 2017-06-06 13:09:52 +07:00
unsplash-integration.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
user.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00