1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01:00

fix year in frontend footer

This commit is contained in:
Kyle Spearrin 2019-01-29 12:52:11 -05:00
parent 378b4bb8c1
commit 459bc69032
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<router-outlet></router-outlet> <router-outlet></router-outlet>
<div class="container my-5 text-muted text-center"> <div class="container my-5 text-muted text-center">
&copy; 2018, 8bit Solutions LLC &copy; {{year}}, 8bit Solutions LLC
<br> {{'versionNumber' | i18n : version}} <br> {{'versionNumber' | i18n : version}}
</div> </div>

View File

@ -12,10 +12,12 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
}) })
export class FrontendLayoutComponent implements OnInit, OnDestroy { export class FrontendLayoutComponent implements OnInit, OnDestroy {
version: string; version: string;
year: string = '2015';
constructor(private platformUtilsService: PlatformUtilsService) { } constructor(private platformUtilsService: PlatformUtilsService) { }
ngOnInit() { ngOnInit() {
this.year = new Date().getFullYear().toString();
this.version = this.platformUtilsService.getApplicationVersion(); this.version = this.platformUtilsService.getApplicationVersion();
document.body.classList.add('layout_frontend'); document.body.classList.add('layout_frontend');
} }