Add client version
All checks were successful
/ build (push) Successful in 22s

This commit is contained in:
phil 2024-11-08 23:52:10 +01:00
parent 963d3437c0
commit 5409616530
4 changed files with 7 additions and 6 deletions

View file

@ -4,7 +4,7 @@
</mat-card-title>
<mat-card-content>
<h2>Version</h2>
<!--<p><span class='h'>Client: </span>{{ version }}></p>-->
<p><span class='h'>Client: </span>{{ version }}></p>
<p><span class='h'>Server: </span>{{ (configService.conf | async).bootstrap.server.version }}</p>
</mat-card-content>
</mat-card>

View file

@ -1,8 +1,7 @@
import { Component, OnInit } from '@angular/core'
import { ConfigService } from '../config.service'
// TODO: get the dynamic version from the git tags
//import packageJson from '../../../package.json'
import versionJson from '../../version.json'
@Component({
selector: 'app-about',
@ -14,7 +13,7 @@ export class AboutComponent implements OnInit {
public configService: ConfigService,
) { }
//public version: string = packageJson.version
public version: string = versionJson.version
ngOnInit(): void {
}