Ghost/ghost/admin/app/controllers
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
..
editor add "delete post" button to the PSM (#649) 2017-04-19 11:46:42 +02:00
settings 🐛 fix broken sidebar after successful import (#658) 2017-04-19 18:57:56 +02:00
setup 💄 refactor setup screens to use ember-concurrency (#644) 2017-04-19 12:27:32 +02:00
team suspend user feature 2017-03-13 13:00:48 +01:00
about.js more shimming of controllers (#110) 2016-07-06 20:47:30 +01:00
application.js 🐛 fix broken sidebar after successful import (#658) 2017-04-19 18:57:56 +02:00
error.js more shimming of controllers (#110) 2016-07-06 20:47:30 +01:00
posts-loading.js 🐛 fix content filters jumping when loading screen is shown 2017-04-13 12:26:04 +01:00
posts.js Content filter styling 2017-04-10 13:16:19 +02:00
reset.js refactor reset password screen to use ember-concurrency (#502) 2017-01-25 07:00:58 -06:00
setup.js more shimming of controllers (#110) 2016-07-06 20:47:30 +01:00
signin.js 💄 refactor setup screens to use ember-concurrency (#644) 2017-04-19 12:27:32 +02:00
signup.js 💄 refactor signup to use ember-concurrency 2017-04-17 10:21:38 -04:00
subscribers.js Style updates to new app frame for all other screens 2017-02-17 10:14:16 +00:00