aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-13 10:19:41 +0100
committerChocobozzz <me@florianbigard.com>2019-12-13 10:19:41 +0100
commitdbdf2d51c6fe50d761ad6286e09f6c75356d2142 (patch)
tree63b74e7ea5cfa97db040acaa1445f822f46750e5 /client/src/app/app.component.ts
parentee83ad12caecfb46bbdda5af5e87b9ca584944a0 (diff)
downloadPeerTube-dbdf2d51c6fe50d761ad6286e09f6c75356d2142.tar.gz
PeerTube-dbdf2d51c6fe50d761ad6286e09f6c75356d2142.tar.zst
PeerTube-dbdf2d51c6fe50d761ad6286e09f6c75356d2142.zip
Add peertube version in features table
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