Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Add a logout button when only the error page is shown (#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac authored and richard-cox committed Oct 6, 2017
1 parent b7e658e commit 7c80240
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
10 changes: 10 additions & 0 deletions components/app-core/frontend/src/view/navbar/navbar.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<!-- Top navigation -->
<div class="nav-logout-only app-actions-bar" ng-if="applicationCtrl.hideNavigation && !applicationCtrl.hideAccount">
<div class="actions-toolbar">
<button
class="no-focus btn btn-link actions-toolbar-btn"
id="navbar-item-logout"
ng-click="applicationCtrl.logout()" tabindex="0">
<span translate>menu.logout</span>
</button>
</div>
</div>
<nav class="secondary-nav"
ng-class="{'navbar-icons-only' : applicationCtrl.navbarIconsOnly, 'navbar-hidden': applicationCtrl.hideNavigation}">
<div ng-if="!applicationCtrl.hideNavigation" type="button"
Expand Down
8 changes: 8 additions & 0 deletions components/app-core/frontend/src/view/navbar/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -411,3 +411,11 @@ nav.secondary-nav {
}
}
}

.nav-logout-only {
text-align: right;

.actions-toolbar {
margin-right: $console-unit-space;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
actions-toolbar {
actions-toolbar, .app-actions-bar {
width: 100%;
display: flex;
align-items: center;
Expand Down

0 comments on commit 7c80240

Please sign in to comment.