aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
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 },