@@ -948,7 +948,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
948948 } ;
949949
950950 self . mainView = mainView ;
951-
951+ self . currentContext = self . getCurrentContext ( ) ;
952952 self . element = $ ( '<div id="sidebar">' +
953953 '<a href="#" data-toggle="modal" data-target="#help-modal"><img id="sidebar-logo" src="img/git-logo.png"></a>' +
954954 '<h5 id="packageVersion"></h5>' +
@@ -974,7 +974,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
974974 '<section id="sidebar-tags">' +
975975 '<h4>Tags</h4>' +
976976 '</section>' +
977- '<section id="sidebar-context" data-toggle="tooltip" data-placement="right" title="Current Context ">' +
977+ '<section id="sidebar-context" data-toggle="tooltip" data-placement="right" title="' + self . currentContext + ' ">' +
978978 '<h4>Change Context</h4>' +
979979 '</section>' +
980980 '<section id="sidebar-settings">' +
@@ -1006,7 +1006,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
10061006 $ ( "#sidebar-context" , self . element ) . click ( self . changeContextGet ) ;
10071007 }
10081008
1009- self . currentContext = self . getCurrentContext ( ) ;
1009+
10101010 self . getPackageVersion ( ) ;
10111011 self . fetchSection ( $ ( "#sidebar-local-branches" , self . element ) [ 0 ] , "Local Branches" , "local-branches" , "branch --verbose --verbose" ) ;
10121012 self . fetchSection ( $ ( "#sidebar-remote-branches" , self . element ) [ 0 ] , "Remote Branches" , "remote-branches" , "branch --remotes" ) ;
0 commit comments