diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-13 10:19:41 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-13 10:19:41 +0100 |
commit | dbdf2d51c6fe50d761ad6286e09f6c75356d2142 (patch) | |
tree | 63b74e7ea5cfa97db040acaa1445f822f46750e5 /client/src/app/core | |
parent | ee83ad12caecfb46bbdda5af5e87b9ca584944a0 (diff) | |
download | PeerTube-dbdf2d51c6fe50d761ad6286e09f6c75356d2142.tar.gz PeerTube-dbdf2d51c6fe50d761ad6286e09f6c75356d2142.tar.zst PeerTube-dbdf2d51c6fe50d761ad6286e09f6c75356d2142.zip |
Add peertube version in features table
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/server/server.service.ts | 10 |
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 | } |