Switch the "Account Settings" link to the new user view page's settings tab

This commit is contained in:
Joseph Schorr 2015-04-03 17:56:08 -04:00
parent 5ed900c9bc
commit cafc96fe28
2 changed files with 6 additions and 1 deletions

View file

@ -55,7 +55,10 @@
</a>
<ul class="dropdown-menu">
<li>
<a href="/user/" target="{{ appLinkTarget() }}">
<a href="/user/{{ user.username }}?tab=settings" target="{{ appLinkTarget() }}" ng-if="isNewLayout">
Account Settings
</a>
<a href="/user/" target="{{ appLinkTarget() }}" ng-if="!isNewLayout">
Account Settings
</a>
</li>

View file

@ -18,6 +18,8 @@ angular.module('quay').directive('headerBar', function () {
// Monitor any user changes and place the current user into the scope.
UserService.updateUserIn($scope);
$scope.isNewLayout = Config.isNewLayout();
$scope.signout = function() {
ApiService.logout().then(function() {
UserService.load();