mirror of
https://github.com/atom/atom.git
synced 2026-02-06 12:44:59 -05:00
Add specs for status bar branch label
This commit is contained in:
committed by
Corey Johnson
parent
8e8ab4ff94
commit
28db13dbc1
@@ -60,10 +60,10 @@ class StatusBar extends View
|
||||
if path = @editor.getPath()
|
||||
@head = new Git(path).getShortHead()
|
||||
else
|
||||
@head = null
|
||||
@head = ''
|
||||
|
||||
@branchLabel.text(@head)
|
||||
if @head
|
||||
@branchLabel.text(@head)
|
||||
@branchArea.show()
|
||||
else
|
||||
@branchArea.hide()
|
||||
|
||||
Reference in New Issue
Block a user