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

18 lines
378 B
TypeScript
Raw Normal View History

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