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:
parent
c5d575b9b6
commit
463c1f8b77
@ -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>
|
||||||
|
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user