PeerTube/client/src/app/+signup/+register/steps/register-step-about.compone...

27 lines
726 B
TypeScript

import { Component, Input } from '@angular/core'
import { ServerService } from '@app/core'
import { ServerStats } from '@peertube/peertube-models'
@Component({
selector: 'my-register-step-about',
templateUrl: './register-step-about.component.html',
styleUrls: [ './register-step-about.component.scss' ]
})
export class RegisterStepAboutComponent {
@Input() requiresApproval: boolean
@Input() videoUploadDisabled: boolean
@Input() serverStats: ServerStats
constructor (private serverService: ServerService) {
}
get instanceName () {
return this.serverService.getHTMLConfig().instance.name
}
get averageResponseTime () {
return this.serverStats?.averageRegistrationRequestResponseTimeMs
}
}