• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TryGhost / Ghost-Admin / 2166
70%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2017 05:06PM UTC
Jobs 1
Files 383
Run time 21s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2166

push

travis-ci

kirrg001
🐛 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

1368 of 2155 branches covered (63.48%)

19 of 19 new or added lines in 3 files covered. (100.0%)

3329 of 4546 relevant lines covered (73.23%)

48.04 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
app/controllers/settings/labs.js
Jobs
ID Job ID Ran Files Coverage
1 2166.1 19 Apr 2017 05:06PM UTC 0
73.23
Travis Job 2166.1
Source Files on build 2166
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2166
  • 6ef7fcaf on github
  • Prev Build on master (#2165)
  • Next Build on master (#2168)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc