aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/core')
-rw-r--r--client/src/app/core/plugins/plugin.service.ts3
-rw-r--r--client/src/app/core/server/server.service.ts7
2 files changed, 9 insertions, 1 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts
index 4e44a1865..b755fda2c 100644
--- a/client/src/app/core/plugins/plugin.service.ts
+++ b/client/src/app/core/plugins/plugin.service.ts
@@ -2,6 +2,7 @@ import { Observable, of, ReplaySubject } from 'rxjs'
2import { catchError, first, map, shareReplay } from 'rxjs/operators' 2import { catchError, first, map, shareReplay } from 'rxjs/operators'
3import { HttpClient } from '@angular/common/http' 3import { HttpClient } from '@angular/common/http'
4import { Inject, Injectable, LOCALE_ID, NgZone } from '@angular/core' 4import { Inject, Injectable, LOCALE_ID, NgZone } from '@angular/core'
5import { VideoEditType } from '@app/+videos/+video-edit/shared/video-edit.type'
5import { AuthService } from '@app/core/auth' 6import { AuthService } from '@app/core/auth'
6import { Notifier } from '@app/core/notification' 7import { Notifier } from '@app/core/notification'
7import { MarkdownService } from '@app/core/renderer' 8import { MarkdownService } from '@app/core/renderer'
@@ -192,7 +193,7 @@ export class PluginService implements ClientHook {
192 : PluginType.THEME 193 : PluginType.THEME
193 } 194 }
194 195
195 getRegisteredVideoFormFields (type: 'import-url' | 'import-torrent' | 'upload' | 'update') { 196 getRegisteredVideoFormFields (type: VideoEditType) {
196 return this.formFields.video.filter(f => f.videoFormOptions.type === type) 197 return this.formFields.video.filter(f => f.videoFormOptions.type === type)
197 } 198 }
198 199
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts
index 5bcf33c1b..bc76bacfc 100644
--- a/client/src/app/core/server/server.service.ts
+++ b/client/src/app/core/server/server.service.ts
@@ -74,6 +74,13 @@ export class ServerService {
74 enabled: true 74 enabled: true
75 } 75 }
76 }, 76 },
77 live: {
78 enabled: false,
79 transcoding: {
80 enabled: false,
81 enabledResolutions: []
82 }
83 },
77 avatar: { 84 avatar: {
78 file: { 85 file: {
79 size: { max: 0 }, 86 size: { max: 0 },