mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
No description
6ef7fcafda
closes TryGhost/Ghost#8307 - unloading the store and refreshing the `session.user` attribute after an import was triggering a rendering edge case where the style was re-computed and a re-render was attempted after the sidebar has been destroyed - rather than binding a style attribute directly to a CP in `gh-nav-menu` we pass the menu icon in (using `settings.settledIcon` - see below) and manually set the style attribute via the `didReceiveAttrs` hook so that outside changes don't trigger re-computations when we don't expect them and so we can still react to icons being uploaded or removed - our usage of `settings.icon` is a bit of an odd situation because it's a link to an external resource that will only resolve correctly after a successful save - if we change `settings.icon` in the local store and the nav menu icon style updates before the save has been completed then the server will give us the old icon. To work around this a `settings.settledIcon` attribute has been added that is only updated when we receive data from the store ensuring that our cache-busting technique works correctly |
||
---|---|---|
.github | ||
app | ||
config | ||
lib | ||
mirage | ||
public/assets | ||
tests | ||
.editorconfig | ||
.ember-cli | ||
.eslintrc.js | ||
.gitignore | ||
.travis.yml | ||
.watchmanconfig | ||
bower.json | ||
ember-cli-build.js | ||
Gruntfile.js | ||
LICENSE | ||
package.json | ||
README.md | ||
testem.js | ||
yarn.lock |
Ghost-Admin
This is the home of Ember.js based admin client that ships with Ghost. For now, refer to that repository for install and development instructions.
Have a bug or issue?
Bugs and issues (even if they only affect the admin client) should be opened on the core Ghost repository.
Copyright & License
Copyright (c) 2013-2017 Ghost Foundation - Released under the MIT license.