Change it so the front page does appear for signed in users, with a welcome message and a browse button
This commit is contained in:
parent
31914da4ca
commit
f12ed9859c
2 changed files with 11 additions and 7 deletions
|
@ -104,14 +104,15 @@ function LandingCtrl($scope, $timeout, Restangular, UserService) {
|
|||
|
||||
$scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) {
|
||||
$scope.user = currentUser;
|
||||
if (currentUser && !currentUser.anonymous) {
|
||||
document.location = '/#/repository';
|
||||
}
|
||||
}, true);
|
||||
|
||||
$scope.awaitingConfirmation = false;
|
||||
$scope.registering = false;
|
||||
|
||||
$scope.browseRepos = function() {
|
||||
document.location = '/#/repository';
|
||||
};
|
||||
|
||||
$scope.register = function() {
|
||||
$('.form-signup').popover('hide');
|
||||
$scope.registering = true;
|
||||
|
|
Reference in a new issue