Skip to content

Commit

Permalink
added app version to support panel
Browse files Browse the repository at this point in the history
  • Loading branch information
sleidig committed May 12, 2022
1 parent 09de863 commit ee10aa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/core/support/support/support.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ <h1>Technical User Support Details</h1>

<div fxFlex class="tech-details">
<p>Username: {{ currentUser.name }}</p>
<p>App version: {{ appVersion }}</p>
<p>Device info: {{ userAgent }}</p>
<p>Current sync state: {{ currentSyncState }}</p>
<p>Last sync: {{ lastSync }}</p>
Expand Down
3 changes: 3 additions & 0 deletions src/app/core/support/support/support.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { RouteTarget } from "../../../app.routing";
import { ConfirmationDialogService } from "../../confirmation-dialog/confirmation-dialog.service";
import { HttpClient } from "@angular/common/http";
import { SyncedSessionService } from "../../session/session-service/synced-session.service";
import { environment } from "../../../../environments/environment";

@RouteTarget("Support")
@Component({
Expand All @@ -28,6 +29,7 @@ export class SupportComponent implements OnInit {
swStatus: string;
swLog = "not available";
userAgent = this.window.navigator.userAgent;
appVersion: string;

constructor(
private sessionService: SessionService,
Expand All @@ -41,6 +43,7 @@ export class SupportComponent implements OnInit {

ngOnInit(): void {
this.currentUser = this.sessionService.getCurrentUser();
this.appVersion = environment.appVersion;
this.initCurrentSyncState();
this.initLastSync();
this.initLastRemoteLogin();
Expand Down

0 comments on commit ee10aa0

Please sign in to comment.