Display frontend / backend version at the homescreen

This commit is contained in:
tanshu committed 2020-10-11 11:13:06 +05:30
1 parent d677cfb1ea
commit 9ecf0b5cc9
10 files changed
+20 -4

No files matched your search

+3
View File
@@ -198,3 +198,6 @@
<h3 class="item-name">Users</h3>
</mat-card>
</div>
<footer class="footer">
<p>Backend: v{{ auth.user.ver }} / Frontend: v{{ version }}</p>
</footer>
+6 -1
View File
@@ -1,5 +1,6 @@
import { Component } from '@angular/core';
import { environment } from '../../environments/environment';
import { AuthService } from '../auth/auth.service';
@Component({
@@ -8,5 +9,9 @@ import { AuthService } from '../auth/auth.service';
styleUrls: ['./home.component.css'],
})
export class HomeComponent {
constructor(public auth: AuthService) {}
version: string;
constructor(public auth: AuthService) {
this.version = environment.version;
}
}