mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-02 07:43:11 +03:00
b5987a6979
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 |
||
---|---|---|
.. | ||
invite.js | ||
navigation-item.js | ||
notification.js | ||
post.js | ||
role.js | ||
setting.js | ||
slack-integration.js | ||
subscriber.js | ||
tag.js | ||
theme.js | ||
unsplash-integration.js | ||
user.js |