1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

alt color navbar on self host

This commit is contained in:
Kyle Spearrin 2018-06-30 14:19:01 -04:00
parent c5d575b9b6
commit 463c1f8b77
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<nav class="navbar navbar-expand navbar-dark bg-primary"> <nav class="navbar navbar-expand navbar-dark bg-primary" [ngClass]="{'bg-secondary-alt': selfHosted}">
<div class="container"> <div class="container">
<a class="navbar-brand" routerLink="/"> <a class="navbar-brand" routerLink="/">
<i class="fa fa-shield"></i> <i class="fa fa-shield"></i>

View File

@ -3,13 +3,18 @@ import {
} from '@angular/core'; } from '@angular/core';
import { MessagingService } from 'jslib/abstractions/messaging.service'; import { MessagingService } from 'jslib/abstractions/messaging.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
@Component({ @Component({
selector: 'app-navbar', selector: 'app-navbar',
templateUrl: 'navbar.component.html', templateUrl: 'navbar.component.html',
}) })
export class NavbarComponent { export class NavbarComponent {
constructor(private messagingService: MessagingService) { } selfHosted = false;
constructor(private messagingService: MessagingService, private platformUtilsService: PlatformUtilsService) {
this.selfHosted = this.platformUtilsService.isSelfHost();
}
lock() { lock() {
this.messagingService.send('lockVault'); this.messagingService.send('lockVault');