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

Add a logout button when only the error page is shown #1289

Merged
merged 1 commit into from
Oct 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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