aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/server/server.service.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/core/server/server.service.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/core/server/server.service.ts')
-rw-r--r--client/src/app/core/server/server.service.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts
index cf9c411a4..fdcc51cc5 100644
--- a/client/src/app/core/server/server.service.ts
+++ b/client/src/app/core/server/server.service.ts
@@ -174,6 +174,16 @@ export class ServerService {
174 return cloneDeep(this.config) 174 return cloneDeep(this.config)
175 } 175 }
176 176
177 getServerVersionAndCommit () {
178 const serverVersion = this.config.serverVersion
179 const commit = this.config.serverCommit || ''
180
181 let result = `v${serverVersion}`
182 if (commit) result += '...' + commit
183
184 return result
185 }
186
177 getVideoCategories () { 187 getVideoCategories () {
178 return cloneDeep(this.videoCategories) 188 return cloneDeep(this.videoCategories)
179 } 189 }