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:
parent
378b4bb8c1
commit
459bc69032
@ -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">
|
||||||
© 2018, 8bit Solutions LLC
|
© {{year}}, 8bit Solutions LLC
|
||||||
<br> {{'versionNumber' | i18n : version}}
|
<br> {{'versionNumber' | i18n : version}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -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');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user