aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-09-29 19:53:49 +0200
committerChocobozzz <me@florianbigard.com>2018-10-01 14:31:01 +0200
commitabb2c7927ca1640a755e0ec32c51bcc9c873b34c (patch)
tree4ded5e7559d48d450f861f5ec5c0a1a794cc2e15 /client/src/app/app.component.ts
parent26b415176212b44ff6ce168cb00aeb93b10c0cb3 (diff)
downloadPeerTube-abb2c7927ca1640a755e0ec32c51bcc9c873b34c.tar.gz
PeerTube-abb2c7927ca1640a755e0ec32c51bcc9c873b34c.tar.zst
PeerTube-abb2c7927ca1640a755e0ec32c51bcc9c873b34c.zip
show last commit hash alongside server version in footer
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 907bc583b..29b02032f 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -45,6 +45,11 @@ export class AppComponent implements OnInit {
45 return this.serverService.getConfig().serverVersion 45 return this.serverService.getConfig().serverVersion
46 } 46 }
47 47
48 get serverCommit () {
49 const commit = this.serverService.getConfig().serverCommit || ''
50 return (commit !== '') ? '...' + commit : commit
51 }
52
48 get instanceName () { 53 get instanceName () {
49 return this.serverService.getConfig().instance.name 54 return this.serverService.getConfig().instance.name
50 } 55 }