From 459bc690325816a3884327090a917ab18d349fc1 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 29 Jan 2019 12:52:11 -0500 Subject: [PATCH] fix year in frontend footer --- src/app/layouts/frontend-layout.component.html | 2 +- src/app/layouts/frontend-layout.component.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/layouts/frontend-layout.component.html b/src/app/layouts/frontend-layout.component.html index 08b0a08b4c..5a3c9878b0 100644 --- a/src/app/layouts/frontend-layout.component.html +++ b/src/app/layouts/frontend-layout.component.html @@ -1,5 +1,5 @@
- © 2018, 8bit Solutions LLC + © {{year}}, 8bit Solutions LLC
{{'versionNumber' | i18n : version}}
diff --git a/src/app/layouts/frontend-layout.component.ts b/src/app/layouts/frontend-layout.component.ts index 8510c1bc0e..aae5ab9922 100644 --- a/src/app/layouts/frontend-layout.component.ts +++ b/src/app/layouts/frontend-layout.component.ts @@ -12,10 +12,12 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; }) export class FrontendLayoutComponent implements OnInit, OnDestroy { version: string; + year: string = '2015'; constructor(private platformUtilsService: PlatformUtilsService) { } ngOnInit() { + this.year = new Date().getFullYear().toString(); this.version = this.platformUtilsService.getApplicationVersion(); document.body.classList.add('layout_frontend'); }