[Library | Assets]: Add dark parameter on user-mini and navbar
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59221 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
138b9ee69e
commit
6ea9cce2a8
|
@ -12,7 +12,7 @@ import {EnvProperties} from '../utils/properties/env-properties';
|
|||
template: `
|
||||
<ng-container *ngIf="!dashboard">
|
||||
|
||||
<ul *ngIf="!mobileView" class="uk-navbar-nav">
|
||||
<ul *ngIf="!mobileView" class="uk-navbar-nav" [class.uk-dark]="dark">
|
||||
<li class="uk-parent">
|
||||
<a *ngIf="loggedIn" class="login">
|
||||
<svg height="60" width="60">
|
||||
|
@ -176,6 +176,7 @@ export class UserMiniComponent implements OnInit, OnChanges {
|
|||
@Input() logOutUrl;
|
||||
@Input() cookieDomain;
|
||||
@Input() redirectUrl: string;
|
||||
@Input() dark: boolean = false;
|
||||
search: string = '';
|
||||
sub: any;
|
||||
|
||||
|
|
|
@ -298,7 +298,7 @@
|
|||
<!-- </div> -->
|
||||
<!-- <div *ngIf="userMenu" class="uk-navbar-right"> -->
|
||||
<!-- <div *ngIf="userMenu" class="uk-navbar-right"> -->
|
||||
<user-mini *ngIf="userMenu" [user]="user"
|
||||
<user-mini *ngIf="userMenu" [user]="user" [dark]="true"
|
||||
[redirectUrl]="(communityId && communityId !== 'connect')?null:properties.afterLoginRedirectLink"
|
||||
[userMenuItems]=userMenuItems [logInUrl]=properties.loginUrl [logOutUrl]=properties.logoutUrl
|
||||
[cookieDomain]=properties.cookieDomain></user-mini>
|
||||
|
|
|
@ -13,6 +13,7 @@ import {Subscription} from "rxjs";
|
|||
})
|
||||
export class NavigationBarComponent {
|
||||
@Input() portal: string = "connect";
|
||||
@Input() dark: boolean = false;
|
||||
@Input() onlyTop: boolean;
|
||||
@Input() logoPath: string = "assets/common-assets/";
|
||||
@Input() userMenu: boolean = true;
|
||||
|
|
Loading…
Reference in New Issue