]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/system/debug/debug.component.ts
Fix print transcode command test
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / system / debug / debug.component.ts
CommitLineData
5d79474c
C
1import { Component, OnInit } from '@angular/core'
2import { Notifier } from '@app/core'
67ed6552
C
3import { Debug } from '@shared/models'
4import { DebugService } from './debug.service'
5d79474c
C
5
6@Component({
7 templateUrl: './debug.component.html',
8 styleUrls: [ './debug.component.scss' ]
9})
10export class DebugComponent implements OnInit {
11 debug: Debug
12
13 constructor (
14 private debugService: DebugService,
15 private notifier: Notifier
16 ) {
17 }
18
19 ngOnInit (): void {
20 this.load()
21 }
22
23 load () {
24 this.debugService.getDebug()
1378c0d3
C
25 .subscribe({
26 next: debug => this.debug = debug,
5d79474c 27
1378c0d3
C
28 error: err => this.notifier.error(err.message)
29 })
5d79474c
C
30 }
31}