mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Add some commas to the paths loaded badge
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
"less": "git://github.com/nathansobo/less.js.git",
|
||||
"roaster": "0.0.3",
|
||||
"jqueryui-browser": "1.10.2-1",
|
||||
"season": "0.7.0"
|
||||
"season": "0.7.0",
|
||||
"humanize-plus": "1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"biscotto": "0.0.11"
|
||||
|
||||
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user