Ghost/ghost/admin/app/services
Kevin Ansfield a63dbb7da6 🐛 fix broken sidebar after successful import (#658)
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
2017-04-19 18:57:56 +02:00
..
ajax.js Update code to match eslint rules 2016-11-14 13:26:00 +00:00
clock.js switch to ember-cli-moment-shim (#622) 2017-04-05 19:45:35 +02:00
config.js 🎨 synchronous settings service 2017-03-20 07:43:49 -05:00
dropdown.js 🐛 fix sticky dropdown links (#621) 2017-04-05 15:26:01 +01:00
event-bus.js theme management UI 2016-08-23 12:42:38 +01:00
feature.js 🎨 synchronous settings service 2017-03-20 07:43:49 -05:00
ghost-paths.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
lazy-loader.js 🎨 implement night mode 2017-03-03 16:54:50 +00:00
media-queries.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
notifications.js use ember-ajax in place of ember-data's networking (#283) 2016-09-26 11:59:04 -05:00
session.js fix test warnings (#492) 2017-01-13 21:14:54 +00:00
settings.js 🐛 fix broken sidebar after successful import (#658) 2017-04-19 18:57:56 +02:00
slug-generator.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
upgrade-notification.js Added upgrade notification component to About page. (#102) 2016-07-15 16:58:35 -06:00
upgrade-status.js "503 Maintenance" error handling 2016-07-08 15:17:26 +01:00