KEYCLOAK-7513 Minor changes to vertical nav (#5244)

This commit is contained in:
Stan Silvert 2018-06-06 14:39:00 -04:00 committed by GitHub
parent 7ff18ca14b
commit b7fb3ec9a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 10 deletions

View file

@ -5,11 +5,10 @@
[contentContainer]="contentContainer" [contentContainer]="contentContainer"
[items]="navigationItems" [items]="navigationItems"
[persistentSecondary]="false" [persistentSecondary]="false"
[pinnableMenus]="true" [pinnableMenus]="false"
[showBadges]="true" [showBadges]="true"
[showIcons]="true" [showIcons]="true"
[updateActiveItemsOnClick]="true" [updateActiveItemsOnClick]="true">
(onItemClickEvent)="onItemClicked($event)">
<div> <div>
<ul class="nav navbar-nav navbar-right navbar-iconic"> <ul class="nav navbar-nav navbar-right navbar-iconic">
@ -38,7 +37,7 @@
<div #contentContainer <div #contentContainer
class="container-fluid container-cards-pf container-pf-nav-pf-vertical example-page-container nav-pf-vertical-with-badges" class="container-fluid container-cards-pf container-pf-nav-pf-vertical example-page-container"
style="background-color: white;"> style="background-color: white;">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">

View file

@ -34,7 +34,7 @@ export class VerticalNavComponent implements OnInit {
this.navigationItems = [ this.navigationItems = [
{ {
title: this.translateUtil.translate('personalInfoHtmlTitle'), title: this.translateUtil.translate('personalInfoHtmlTitle'),
iconStyleClass: 'pficon pficon-user', iconStyleClass: 'fa fa-user-circle',
url: 'account', url: 'account',
mobileItem: false mobileItem: false
}, },
@ -89,9 +89,4 @@ export class VerticalNavComponent implements OnInit {
this.keycloakService.login({kcLocale: newLocale}); this.keycloakService.login({kcLocale: newLocale});
} }
onItemClicked($event: NavigationItemConfig): void {
if (this.pfVerticalNav.hoverSecondaryNav) {
this.pfVerticalNav.collapseSecondaryNav($event);
}
}
} }