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>
|
</a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li>
|
<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
|
Account Settings
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -18,6 +18,8 @@ angular.module('quay').directive('headerBar', function () {
|
||||||
// Monitor any user changes and place the current user into the scope.
|
// Monitor any user changes and place the current user into the scope.
|
||||||
UserService.updateUserIn($scope);
|
UserService.updateUserIn($scope);
|
||||||
|
|
||||||
|
$scope.isNewLayout = Config.isNewLayout();
|
||||||
|
|
||||||
$scope.signout = function() {
|
$scope.signout = function() {
|
||||||
ApiService.logout().then(function() {
|
ApiService.logout().then(function() {
|
||||||
UserService.load();
|
UserService.load();
|
||||||
|
|
Reference in a new issue