aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts13
1 files changed, 4 insertions, 9 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index f1658ca1b..351620c59 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -51,15 +51,6 @@ export class AppComponent implements OnInit {
51 private modalService: NgbModal 51 private modalService: NgbModal
52 ) { } 52 ) { }
53 53
54 get serverVersion () {
55 return this.serverService.getConfig().serverVersion
56 }
57
58 get serverCommit () {
59 const commit = this.serverService.getConfig().serverCommit || ''
60 return (commit !== '') ? '...' + commit : commit
61 }
62
63 get instanceName () { 54 get instanceName () {
64 return this.serverService.getConfig().instance.name 55 return this.serverService.getConfig().instance.name
65 } 56 }
@@ -122,6 +113,10 @@ export class AppComponent implements OnInit {
122 this.isMenuDisplayed = window.innerWidth >= 800 && !this.isMenuChangedByUser 113 this.isMenuDisplayed = window.innerWidth >= 800 && !this.isMenuChangedByUser
123 } 114 }
124 115
116 getServerVersionAndCommit () {
117 return this.serverService.getServerVersionAndCommit()
118 }
119
125 private initRouteEvents () { 120 private initRouteEvents () {
126 let resetScroll = true 121 let resetScroll = true
127 const eventsObs = this.router.events 122 const eventsObs = this.router.events