mirror of
https://github.com/bitwarden/web
synced 2025-12-15 07:43:16 +00:00
alt color navbar on self host
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user