Add some commas to the paths loaded badge

This commit is contained in:
Kevin Sawicki
2013-05-16 16:22:53 -07:00
parent 392ffce8c7
commit a965cb684c
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
SelectList = require 'select-list'
_ = require 'underscore'
$ = require 'jquery'
humanize = require 'humanize-plus'
fsUtils = require 'fs-utils'
LoadPathsTask = require './load-paths-task'
@@ -167,7 +168,7 @@ class FuzzyFinderView extends SelectList
@populateProjectPaths(options)
@loadPathsTask = new LoadPathsTask(callback)
@loadPathsTask.on 'paths-loaded', (paths) =>
@loadingBadge.text(paths.length)
@loadingBadge.text(humanize.intcomma(paths.length))
@loadPathsTask.start()
populateOpenBufferPaths: ->