Skip to content

Commit 406a99f

Browse files
committed
added applicationName to footnote component
1 parent 5cb5fdc commit 406a99f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<div class="ps-3 footer">
2-
&copy; {{currentYear}} &sdot; {{companyName}} &sdot; Build-version: {{version}} &sdot; Build-timestamp: {{timestamp}} &sdot; Customer: {{customer}}
2+
{{applicationName}} &copy; {{currentYear}} &sdot; {{companyName}} &sdot; Build-version: {{version}} &sdot; Build-timestamp: {{timestamp}} &sdot; Customer: {{customer}}
33
</div>

src/main/js/app/component/footer/footnote.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class FootnoteComponent implements OnInit {
1616
timestamp: string | undefined;
1717
customer: string | undefined;
1818
currentYear = new Date().getFullYear();
19+
applicationName = 'angular-boilerplate'
1920
companyName = 'hofi.org'
2021

2122
constructor(private meta: Meta) {
@@ -31,7 +32,7 @@ export class FootnoteComponent implements OnInit {
3132

3233
if (!FootnoteComponent.hasLogged && this.version !== undefined) {
3334
console.info(
34-
${this.currentYear}${this.companyName} ⋅ Build-version: ${this.version} ⋅ Build-timestamp: ${this.timestamp} ⋅ Customer: ${this.customer}`
35+
`${this.applicationName} © ${this.currentYear}${this.companyName} ⋅ Build-version: ${this.version} ⋅ Build-timestamp: ${this.timestamp} ⋅ Customer: ${this.customer}`
3536
);
3637
FootnoteComponent.hasLogged = true; // Set the flag to true after logging
3738
}

0 commit comments

Comments
 (0)