Fix handling of repositories list when not signed in
This commit is contained in:
parent
35c1e6e53b
commit
dc3ec72432
3 changed files with 12 additions and 3 deletions
|
@ -80,7 +80,11 @@ function HeaderCtrl($scope, UserService) {
|
|||
function GuideCtrl($scope, Restangular) {
|
||||
}
|
||||
|
||||
function RepoListCtrl($scope, Restangular) {
|
||||
function RepoListCtrl($scope, Restangular, UserService) {
|
||||
$scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) {
|
||||
$scope.user = currentUser;
|
||||
}, true);
|
||||
|
||||
$scope.getCommentFirstLine = function(commentString) {
|
||||
return getMarkedDown(getFirstTextLine(commentString));
|
||||
};
|
||||
|
|
Reference in a new issue