]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/instance/instance-statistics.component.ts
Merge branch 'release/2.1.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / instance / instance-statistics.component.ts
1 import { Component, OnInit } from '@angular/core'
2 import { ServerStats } from '@shared/models/server'
3 import { ServerService } from '@app/core'
4
5 @Component({
6 selector: 'my-instance-statistics',
7 templateUrl: './instance-statistics.component.html',
8 styleUrls: [ './instance-statistics.component.scss' ]
9 })
10 export class InstanceStatisticsComponent implements OnInit {
11 serverStats: ServerStats = null
12
13 constructor (
14 private serverService: ServerService
15 ) {
16 }
17
18 ngOnInit () {
19 this.serverService.getServerStats()
20 .subscribe(res => this.serverStats = res)
21 }
22 }