1
0
mirror of https://github.com/bitwarden/web synced 2025-12-10 05:13:40 +00:00
Files
web/src/app/layouts/frontend-layout.component.ts
Kyle Spearrin ba6451856a frontend footer
2018-06-11 12:06:57 -04:00

27 lines
666 B
TypeScript

import {
Component,
OnDestroy,
OnInit,
} from '@angular/core';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
@Component({
selector: 'app-frontend-layout',
templateUrl: 'frontend-layout.component.html',
})
export class FrontendLayoutComponent implements OnInit, OnDestroy {
version: string;
constructor(private platformUtilsService: PlatformUtilsService) { }
ngOnInit() {
this.version = this.platformUtilsService.getApplicationVersion();
document.body.classList.add('layout_frontend');
}
ngOnDestroy() {
document.body.classList.remove('layout_frontend');
}
}