X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bmy-account%2Fmy-account.component.ts;h=a8f5f8f31d55b28ab71b72a3beabb2de833ece4c;hb=5d08a6a74e83f2e4dfe2f3ba7f5a39371e1bc89e;hp=7bb461d3c9908dd918578e08942a8e520e4e17ff;hpb=62e62f118d5da57acd3494fece2e8ed357564ffe;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+my-account/my-account.component.ts b/client/src/app/+my-account/my-account.component.ts index 7bb461d3c..a8f5f8f31 100644 --- a/client/src/app/+my-account/my-account.component.ts +++ b/client/src/app/+my-account/my-account.component.ts @@ -1,7 +1,17 @@ import { Component } from '@angular/core' +import { ServerService } from '@app/core' @Component({ selector: 'my-my-account', templateUrl: './my-account.component.html' }) -export class MyAccountComponent {} +export class MyAccountComponent { + + constructor ( + private serverService: ServerService + ) {} + + isVideoImportEnabled () { + return this.serverService.getConfig().import.video.http.enabled + } +}