PeerTube/client/src/app/+my-account/my-account.component.ts

18 lines
378 B
TypeScript
Raw Normal View History

2018-04-23 16:16:05 +02:00
import { Component } from '@angular/core'
2018-08-03 11:10:31 +02:00
import { ServerService } from '@app/core'
2018-04-23 16:16:05 +02:00
@Component({
2018-04-24 15:10:54 +02:00
selector: 'my-my-account',
2018-04-23 16:16:05 +02:00
templateUrl: './my-account.component.html'
})
2018-08-03 11:10:31 +02:00
export class MyAccountComponent {
constructor (
private serverService: ServerService
) {}
isVideoImportEnabled () {
2018-08-03 17:00:19 +02:00
return this.serverService.getConfig().import.videos.http.enabled
2018-08-03 11:10:31 +02:00
}
}