Switch the "Account Settings" link to the new user view page's settings tab
This commit is contained in:
parent
5ed900c9bc
commit
cafc96fe28
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
|
|
Reference in a new issue