aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-31 10:19:34 +0100
committerChocobozzz <me@florianbigard.com>2018-01-31 10:19:34 +0100
commit915c5bbe538769b1d3430b27817d6a861c766ef3 (patch)
tree9200deffc7d1a83eed52a01b6fb3755776c51ca9 /client/src/app
parentc8cf5952f3be2dd64016c10dfe1825a6de1ec39b (diff)
downloadPeerTube-915c5bbe538769b1d3430b27817d6a861c766ef3.tar.gz
PeerTube-915c5bbe538769b1d3430b27817d6a861c766ef3.tar.zst
PeerTube-915c5bbe538769b1d3430b27817d6a861c766ef3.zip
Add version in footer
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/app.component.html2
-rw-r--r--client/src/app/app.component.ts4
-rw-r--r--client/src/app/core/server/server.service.ts1
3 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/app.component.html b/client/src/app/app.component.html
index 1a808b397..ba7debc71 100644
--- a/client/src/app/app.component.html
+++ b/client/src/app/app.component.html
@@ -27,7 +27,7 @@
27 </div> 27 </div>
28 28
29 <footer class="row"> 29 <footer class="row">
30 <a href="https://github.com/Chocobozzz/PeerTube" title="PeerTube on Github">PeerTube</a> - 30 <a href="https://github.com/Chocobozzz/PeerTube" title="PeerTube on Github">PeerTube v{{ serverVersion }}</a> -
31 <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" title="PeerTube licence">CopyLeft 2015-2017</a> 31 <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" title="PeerTube licence">CopyLeft 2015-2017</a>
32 </footer> 32 </footer>
33 </div> 33 </div>
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index ba52c2102..584640290 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -29,6 +29,10 @@ export class AppComponent implements OnInit {
29 private serverService: ServerService 29 private serverService: ServerService
30 ) {} 30 ) {}
31 31
32 get serverVersion () {
33 return this.serverService.getConfig().serverVersion
34 }
35
32 ngOnInit () { 36 ngOnInit () {
33 this.authService.loadClientCredentials() 37 this.authService.loadClientCredentials()
34 38
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts
index 45f68b434..6df449018 100644
--- a/client/src/app/core/server/server.service.ts
+++ b/client/src/app/core/server/server.service.ts
@@ -16,6 +16,7 @@ export class ServerService {
16 videoLanguagesLoaded = new ReplaySubject<boolean>(1) 16 videoLanguagesLoaded = new ReplaySubject<boolean>(1)
17 17
18 private config: ServerConfig = { 18 private config: ServerConfig = {
19 serverVersion: 'Unknown',
19 signup: { 20 signup: {
20 allowed: false 21 allowed: false
21 }, 22 },