From 5d08a6a74e83f2e4dfe2f3ba7f5a39371e1bc89e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Aug 2018 11:10:31 +0200 Subject: Add import http enabled configuration --- client/src/app/+my-account/my-account.component.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'client/src/app/+my-account/my-account.component.ts') 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 + } +} -- cgit v1.2.3